【华为OJ】【013-句子逆序】
题目链接:
https://blog.csdn.net/DERRANTCM/article/details/51319735
C++实现:
void main()
{
string str1,strOut;
vector<string> strIn;
do
{
cin >> str1;
strIn.push_back(str1);
} while (cin.get() != '\n');
for (int i=strIn.size()-1;i>=0;i--)
cout << strIn[i] << " ";
system("pause");
}