![]() |
| |
Thread Tools Display Modes |
|
quick question for C++
alright i am new to C++ and i have a problem that i cant seem to figure out. I am going along with the book or what gunz has posted so far and its awesome but when im making a program it automatically closes and yes you can put a part in where you have to press enter but then when i have a program that requires a person to input information then it displays information after the input there is a problem after they input the info i auto closes even if i do add the part of the script that requires you to press enter it seems to by pass all the cout shit and its pissing me off hope some one can help thanks
__________________
![]() If you like my sigs rep me (thanks for the rep guys i appreciate the feedback!) |
|||||||
|
try this
Code:
#include "stdafx.h"
#include <iostream>
using namespace std;
int main();
{
cout << "Game Over" << endl;
system("pause");
return 0;
}
or maybe its cuz u dont have something that goes after the user input...if u just have input the nothing the program will close...unless u put something after that it wont stay open
__________________
DONT CLICK HERE
![]() Quote:
Quote:
Quote:
Last edited by mameman2; 01-19-2008 at 06:48 PM.. |
||||||||||
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
























Linear Mode
