How can I have a variable or string of, for example, "hello, how have you been today?" I usedto test this, but it always comes out with the string is only "hello" instead of "hello, how have you been today?"Code:#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
system("color 02");
cout<<"Hello World!\n";
string test;
cin>> test;
cout<< test;
system("PAUSE");
return EXIT_SUCCESS;
}
Thanks.
