Example of String Input and Output

   string strA = "hello boys and girls";
cout << strA << endl;
   cin >> strA;
cout << strA << endl;
   // The function string::getline does not work 
// correctly in Visual C++ 6.0
// This is a known bug, but there is a work around.
getline(cin,strA);
cout << strA << endl;