Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cin.getline

string z,s;
 while (true)
    {
      cin>>z;
      s+=z;
      if(cin.peek()=='
')
      break;
    }
................................
			OR/
.................................
string s;
getline(cin,s);
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
1+5 =