|
-
November 3rd, 2001, 08:08 PM
#1
simple C++ problem
I can't figure this out. What am I missing in this simple little program? I can build & compile this and there are no errors or warnings. But as soon as I enter a string and press enter everthing goes away.
#include <iostream>
using namespace std;
int main()
{
char s[80];
cout << "Enter a character string" << endl;
cin >> s;
cout << "The string you entered is: " << s << endl;
return 0;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|