Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ reading string

#include <iostream>
#include <string>
string str;
getline(cin, str);
//str contains line
 
PREVIOUS NEXT
Tagged: #reading #string
ADD COMMENT
Topic
Name
3+9 =