Answers for "read full line in c++"

C++
0

read full line in c++

string line;

while (getline(cin, line)) {
    // do something with the line
}
Posted by: Guest on December-29-2021

Browse Popular Code Answers by Language