/* Author Name: Baljeet S. Malhotra */
/* Student ID:  XXXXXXXXXXX         */ 
/* Program Name: String-example.cpp */
/* Program Description: Example     */
/* Date of creation: 14th Oct. 2004 */
/* Lab section: XX                  */

#include <iostream>
#include <string>

using namespace std;

int main()
{

 char tempChar;
 string S1 = "This is test";
 cout << "Enter  a sentence. When you are done, please hit enter : ";

 while(tempChar != '\n') {
   cin.get(tempChar);
   cout <<tempChar;
 } 
 return 0;
}
