Answers for "run program until ctrl-d c++"

C++
0

run program until ctrl-d c++

std::string line; 
while (std::getline(std::cin, line))
{
    std::cout << line << std::endl;
}
Posted by: Guest on May-10-2020

Browse Popular Code Answers by Language