Posts by Luis Souza • 640 points
31 posts
-
2
votes1
answer92
viewsQ: What is Syriac Language in the Assembly Context
Performing a list of Computer Organization I came across the following question: Rewrite programs written in assembly language (Assembly) in the previous exercise for symbolic language. Consider…
assemblyasked Luis Souza 640 -
0
votes1
answer104
viewsA: How to print fraction in floating point format?
Solution std::cout.unsetf(std::ios::floatfield); std::cout.precision(2); std::cout << "\n\033[36mFração\033[37m : " << static_cast< float >(this->numerador) << "…
-
0
votes1
answer104
viewsQ: How to print fraction in floating point format?
How can I print a fraction in the floating format in C++? I searched what this format would look like, but found nothing. E.g : 5 __ 3
-
3
votes2
answers178
viewsQ: Duck type in Elixir
[5,a,15] = [5,10,15] Doing this type of assignment in Elixir is Duck Typing or are different concepts? I ask because I was left with doubt since on the left side is declared a "variable" without an…
-
4
votes1
answer84
viewsQ: What is the Chainability?
What exactly is Chainability ? It is applicable in languages other than Javascript ? I researched a little, but the term washes me for unrelated articles, I believe that does not leave what exactly…
javascriptasked Luis Souza 640 -
0
votes1
answer1027
viewsQ: Print Format & End in Python
I’m creating an application that connects to db Sqlite, query and returns the column of the table in question, the problem is that the returned result without formatting comes like this : ( u'Field…
-
2
votes1
answer361
viewsQ: Import multiple libs into a single include in c
Is there any way to import all libs from my program into one include as in other languages : import re, datetime, math ( Python ) ? After reading about pre-processing directives here ( Little is…
-
3
votes2
answers441
viewsQ: Python dot notation ( methods )
How to create point notation methods, those that are called object.show () instead of show ( objec ), or they apply only to strings, if yes why exactly ?
-
0
votes3
answers281
viewsQ: Problem with pointer and recursive function
The code is this : Node * search ( Node ** root, int mats ) { if ( ! ( * root ) ) { return NULL; } else { search ( & ( * root ) -> esq, mats ); if ( ( * root ) -> person.mat == mats ) {…
-
7
votes1
answer3710
viewsQ: Why use static python methods
I’m studying about the subject of the title and I can’t get the idea with the explanation on video and the Stk I found, so when and why we use static method @staticmethod in python, one has some…
-
2
votes1
answer192
viewsQ: What is 'Binding time' in the context of development?
In the software quality study I came across this term 'Binding time' (connection time) and I was somewhat lost in the concept. So what exactly is?
terminologyasked Luis Souza 640 -
1
votes1
answer463
viewsQ: How to remove all nodes from a circular list?
I’m having a hard time getting the logic of how to remove all nodes from a circular list, if someone could give a brief explanation of concept and / or point out the errors in the code I’ve already…
-
1
votes1
answer94
viewsQ: Accessing a pointer pointer ( c )
Why go down a level on the pointer ** lista / * lista we should use parentheses : ( * lista ), I asked the question because I saw in some examples on the internet that they didn’t use and also in an…
-
2
votes1
answer241
viewsQ: How to increment an Enum in C?
Objectively as I do to increment ++ or += 1 one of the variables of enum (the increment will be in a loop / switch): enum {um = 0, dois = 0 ... seis = 0}; I read that one question and I didn’t get…
-
1
votes1
answer89
viewsQ: Why some methods have ' :: '
Why some methods like Perl or Ruby: Net::FTP, has these two points; how is the construction of the methods of this class and why is created in this way (with this syntax) and not in the way used by…
-
4
votes1
answer1099
viewsQ: Hash, Object or Dictionary?
I have been studying python and ruby and have seen that several other languages as well as these two make use of different terminologies to determine a ' Json object. var objeto = { 'name' : 'Darth…
-
0
votes1
answer425
viewsQ: Alignment with flex box
I need the image to be positioned on the left until the menu activates its " responsibility " ( and then it normally becomes ), but I tried to add it in another field but the menu broke, I tried to…
-
-1
votes1
answer2252
viewsQ: Route system in php
My current structure is as follows: : How do I load the content in the index when the person clicks on the title without opening on another page ( ie just change the central content ), I researched…
phpasked Luis Souza 640 -
2
votes3
answers212
viewsQ: Get source file from a Python module
How can I assign a method to a module in Python or even access its source file? I tried using the attribute __file__, as shown below, but returned me the error saying that the module does not have…
-
0
votes1
answer37
viewsQ: Swap the gif of the page
I am creating a page where it will contain a gif that is in loop, but I would like as soon as it reaches the end of the first loop to be replaced by another and so on ... da para fazer isso com…
-
2
votes2
answers122
viewsQ: String comparison
Problem : I have to get the object that displays the content in the English language ( lang == en ) But depending on the search performed the order of the languages comes completely different and I…
-
1
votes0
answers541
viewsQ: Php my admin showing font code
I installed mysql, php and apache good so I restarted all and went to install php my admin until a problem arose at the time of launching the same in the browser it shows the source code, I tried to…
-
-4
votes1
answer72
viewsQ: Javascript to delete
I have no knowledge in J, but I saw that it is with this language that you can use scripts and delete social network items like by Exp on twitter:…
javascriptasked Luis Souza 640 -
1
votes1
answer8939
viewsQ: Count the lines of a txt file in c / c++
In file class the teacher used " EOF " to determine whether the file had reached its end, but by reading the wiki about c files, I saw that the implementation of the end check of a file is " FEOF ",…
-
0
votes1
answer120
viewsQ: While saving file in server folder keeps asking root access
I searched about my problem and only found solutions for host ( none presented applicable to the local server ), does anyone know how I disable this stop ask for the root password every time I save…
-
3
votes2
answers80
viewsQ: Parameters for external call
I use Linux and by default (or at least in my case) it does not have screen brightness control, but has a program that gives to control. The point here is that I want to take the "user" value and…
-
3
votes2
answers240
viewsQ: String pointer does not work as expected
I’m trying to print the pointer of string below, and put yourself " %s " + char* t[]; makes mistake, already put %c he prints the letter " i " I don’t know why. I want to learn and not Ctrl + c and…
-
0
votes1
answer312
viewsQ: String help
Make a program that finds the set of 5 consecutive digits in the sequence of only numeric characters that generates the largest product, print that set of 5 digits and the result of your product.…
-
3
votes1
answer201
viewsQ: Problem with strlen()
Why is this code printing an extra number when I initialized the variable as 0? #include <stdio.h> #include <string.h> int main ( void ) { char texto[50]; int cont = 0; printf("\nInforme…
-
1
votes1
answer1037
viewsQ: Doubt about Caesar’s cipher
The problem is that I need to stop printing when it reaches the last digit of the vector only I don’t know how to do, and also how I will print after z, because the way I did it didn’t print ? ( I’m…
-
0
votes1
answer543
viewsQ: Problem with float and matrix
I have to add the values that have two or more decimals but when I put by Exp: "1.0", it fills this whole row automatically and jumps to the next, I reviewed and I don’t know why you are giving…