백준 11719

Oak_Cassia·2022년 3월 26일
0

백준 11719
get line은 입력이 없을 때 (파일의 끝일 때) NULL을 반환한다.

#include<iostream>

int main()
{
    std::string str;
    while(getline(std::cin,str))
        std::cout<<str<<std::endl;
}
profile
rust로 뭐할까

0개의 댓글