Posts by Antonio Gomes • 15 points
3 posts
-
1
votes0
answers91
viewsQ: Where does the eclipse C/C++ generate the executable?
I want to use a relative to open a read file in the C/C++ eclipse, but I would need to know where the eclipse runs the file to put the file in that directory and use the line of code: ifstream…
c++asked Antonio Gomes 15 -
0
votes3
answers4203
viewsQ: Generating random numbers C++
Hi, I’m writing a simulation in C++ and I have to generate some random numbers. To do this, initialize ( srand(time(NULL)) once and I have a method as follows: void…
c++asked Antonio Gomes 15 -
0
votes1
answer436
viewsQ: Error reading C++ file
Can anyone tell me why the output of this program is just "end"? The file naocompre.txt is in the same directory as the program. Follows the code: #include<iostream> #include<fstream>…
c++asked Antonio Gomes 15