Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

read from standard input cpp

#include <iostream>
#include <string>

int main() {
    for (std::string line; std::getline(std::cin, line);) {
        std::cout << line << std::endl;
    }
    return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #read #standard #input #cpp
ADD COMMENT
Topic
Name
6+6 =