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;
}