User forums > Help
Black Window Doesn't show up
Epitaph:
Hello everyone, i'm quite new to the C++ programming and i recently installed Code::Blocks for Windows XP.
The mingw version.
Everything's fine except for one thing. Whenever i hit F9 and wait for the black window to show up...well, it won't show up at all!
Even on the simplest program (hello world) i added a "cin >> x;" so i can make sure the window would show up and not just flash, but it didn't do anything.I know you can use system("pause") or something but i want this to happen automatically.
I use the :
GNU GCC Compiler
Thank you!
Epitaph:
Well i went to the folder of the files, and opened the exe file (in the bin folder) and it run just fine...
But can i link that with the "Compile and Run" process?
oBFusCATed:
Do you have a project?
Epitaph:
Of course:
File--->New--->Project--->Console Application.
Then i choose C++ ,the name and the compiler.
Any ideas? :S
oBFusCATed:
1. Goto "Project->Properties->Build targets"
2. Verify that Type==Console application
3. "Pause when execution ends" is checked
Navigation
[0] Message Index
[#] Next page
Go to full version