#include "stdafx.h"
#include<iostream>
#include<string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string line;
while (getline(cin, line))
cout << line;
return 0;
}
输出结果为:
#include "stdafx.h"
#include<iostream>
#include<string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string line;
while (getline(cin, line))
cout << line;
return 0;
}
输出结果为: