Posts by Tiago Martins • 483 points
9 posts
-
1
votes0
answers46
viewsQ: When to use namespace in C++?
Here’s the thing, since I knew how to use using namespace std; was a bad practice I stopped using namespace. Only now I started studying the Opencv library and see in its documentation to use using…
-
1
votes1
answer1037
viewsA: Doubt about Caesar’s cipher
See if you understand my code, if you have any questions, let me know. PS: The punctuation marks will be encrypted, if you do not want to add another condition. #include <stdio.h> #include…
-
2
votes1
answer141
viewsA: Problems with a program that must read a registry file with a variable size field
First you switched the line 88 with the 89 is printing street number and street number. 88: printf ("\nNumero: %s", (*myreg).rua[nu]); and 89: printf ("\nRua: %d", (*myreg).num[nu]); //esse é o…
canswered Tiago Martins 483 -
2
votes1
answer1306
viewsA: Exercise URI 1005: Code correction C (simple average)
The main error in your code is you are making a simple average and in this case it has to be weighed at least I think, because they give weights to the notes. I made a code, tested the examples and…
canswered Tiago Martins 483 -
6
votes2
answers790
viewsQ: Linux-based c++ Qt program to run on Windows
People wanted to know if there is any way and if there is what, to basically create an executable ,of a GUI program made in Qt, for Windows being that I am using Linux.
-
1
votes1
answer227
viewsA: Bug when using Cin detro command of a loop
To work just put cin.ignore() before the cin.get(a[c].nome,100). This is because when you choose option 1 you hit ENTER and Cin catches this ENTER, then you do cin.ignore() you will be "ignoring"…
-
4
votes1
answer727
viewsQ: Countdown time
I’m creating a mini-game with several questions and I want you to have time, x until zero. The counter only needs to have seconds and minutes. Does anyone know of any function in C++ or some…
-
1
votes1
answer684
viewsQ: Is it recommended to use IDE for C++ programming?
When I was learning C I was programming using a text editor and a compiler, but since C++ is POO-facing maybe an IDE will help although I haven’t been much in favor of IDE’s. I would like to…
-
15
votes2
answers458
viewsQ: Is there a way to create cross Platform programs in C++?
I know how to program in C and I am now learning Java, but I would love to learn C++ and I wanted to know if it is possible to create programs cross Platform, that is, that they run in any OS…