getline
#include <string> #include <iostream> #include <sstream> using namespace std; int main() { string s; stringstream ss; ss << "Invalid Input"; while (ss.good()) { string line; getline(ss, line); cout << line; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)