|Autosaving before building and consoles [message #1780365]
||Sun, 21 January 2018 15:45
| Leonardo Benini
Registered: January 2018
I used DevC++ for a while, now that i switched to Eclipse i wonder if there is a way to build a project such that it automatically saves the file, then build/build-and-run it.
It's not a big deal to click one more button to run a project, but if there is a way to do it why not?
Why does the built-in console kinda work differently from the cmd?
I write a simple program to say "Helll world!"
I use system("PAUSE") at the end to keep the window open(i do not use it anymore, i know it is bad, this problem doesn't happen now, i'm just curious about why it did)
If i end the string "Hello World!" with a <<endl both the cmd and the built in console work fine.
If i write "Hello world!\n" or simply "Hello World!" the cmd works fine (in the second case Press any key to continue is attached to world! obviously), but if i run it in the console it runs every instruction but the last(in this case it does nothing), then it writes "Press any key to continue" and then it outputs the string, why so?
Powered by FUDForum
. Page generated in 0.01511 seconds