• Command Prompt crashes
    6 replies, posted
I've been trying to learn C++, but whenever I build the program (even ones as simple as hello world) my command prompt just crashes. Any ideas?
[url]http://www.facepunch.com/forumdisplay.php?f=240[/url]
Perhaps you can try and be more descriptive?
[QUOTE=Thor667;22108208][url]http://www.facepunch.com/forumdisplay.php?f=240[/url][/QUOTE] I though about posting it there, but its more of a system problem. [editline]01:35PM[/editline] [QUOTE=B1N4RY!;22108216]Perhaps you can try and be more descriptive?[/QUOTE] Ok, when i build my the C++ file, it debugs successfully, then it tries to open in command propmt. Command prompt opens for a few seconds, then closes, and nothing is ever displayed in the window, just the black bg. This same thing occurs when i run certain commands in command prompt. Specs: WinXP Home service pack 3 Pentium 4 2.80 GHz 2 gigs of RAM
Are you opening the right [B]type[/B] of program to write? for example are you choosing to create a "win32 console application" instead of a "win32 project" or something like that?
By crashing, does it shutdown instantly? If it shutdown instantly you need to put this before return 0; [code]cin.get();[/code] This will pause it, so you can see the results.
[QUOTE=Mokkan13;22114214]Are you opening the right [B]type[/B] of program to write? for example are you choosing to create a "win32 console application" instead of a "win32 project" or something like that?[/QUOTE] yes, i checked that [editline]10:03PM[/editline] [QUOTE=KillerBox;22114966]By crashing, does it shutdown instantly? If it shutdown instantly you need to put this before return 0; [code]cin.get();[/code] This will pause it, so you can see the results.[/QUOTE] lemme try that cin.get(); just returns an error
Sorry, you need to Log In to post a reply to this thread.