백준 11719 get line은 입력이 없을 때 (파일의 끝일 때) NULL을 반환한다.
#include<iostream> int main() { std::string str; while(getline(std::cin,str)) std::cout<<str<<std::endl; }