string s;
getline(cin, s);
string line;
while (getline(cin, line)) {
// do something with the line
}
Code Example |
---|
Cpp :: convert binary string to int c++ |
Cpp :: Write C++ program to sort an array in ascending order |
Cpp :: how to create array with not constant size in cpp |
Cpp :: opencv c++ image write |
Cpp :: vector fin element c++ |
Cpp :: find max value in array c++ |
Cpp :: c++ simple projects |
Cpp :: find primes in a range in c++ |
Cpp :: how to do sets in cpp |
Cpp :: overload stream extract cpp |
Cpp :: char ascii c++ |
Cpp :: restting a queue stl |
Cpp :: string to int c++ |
Cpp :: sort a 2d vector c++ stl |
Cpp :: c++ get type name of object |
Cpp :: how to find 2d vector length cpp |
Cpp :: how to delete a file in cpp |
Cpp :: C++ Vector Iterator Syntax |
Cpp :: int to hexadecimal in c++ |
Cpp :: find prime number c++ |
Cpp :: sizeof operator in c++ |
Cpp :: ascii conversion cpp |
Cpp :: Header for INT_MIN |
Cpp :: array to string c++ |
Cpp :: stack overflow c++ |
Cpp :: stack implementation through linked list |
Cpp :: ascii cpp |
Cpp :: getline |
Cpp :: c++ #define |
Cpp :: getline() |