입력받고 출력하는 과정을 100번 반복하였습니다.
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char * argv[])
{
string s;
for(int i=0; i<100; ++i){
getline(cin, s);
cout << s << endl;
}
return 0;
}
'알고리즘' 카테고리의 다른 글
[C++] 백준 1008번 A/B (0) | 2019.03.05 |
---|---|
[C++] 백준 10998번 AxB (0) | 2019.03.05 |
[C++] 백준 11718번 그대로 출력하기 (0) | 2019.03.05 |
[C++] 백준 10718번 We love kriii (0) | 2019.03.05 |
[C++] 백준 10172번 개 (0) | 2019.03.05 |