// test14.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include<iostream>
#include<string>
#include<cctype>
#include <vector>
#include<exception>
#include <initializer_list>
using namespace std;

int output(vector<string>  &vec)
{
	static int num = vec.size();
	if(num!=0)
	{
		cout << vec[--num] << "  ";
		output(vec);
	}
	return 0 ;
}

int main()
{
	vector<string> vec;
	string s;
	int i = 1;

	

	while (cin>>s)
	{
		vec.push_back(s);
		if (getchar()=='\n')
		{
			break;
		}
}
 output(vec);
	
	return 0;
}

相关文章:

  • 2022-12-23
  • 2021-07-19
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-14
  • 2021-07-14
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-12-19
相关资源
相似解决方案