Ответы
Ответ дал:
0
#include "stdafx.h"
#include <iostream>
#include <sstream>
using namespace std;
int main()
{
string str;
string inpstr;
string outstr;
stringstream oss;
cout << "Vvodite stroku ->" << endl;
getline(cin, inpstr, 'n');
oss << inpstr;
outstr.clear();
while (!oss.eof())
{
oss >> str;
if (str.size())
outstr = str + ' ' + outstr;
} cout << outstr << endl;
system("pause");
return 0;}
#include <iostream>
#include <sstream>
using namespace std;
int main()
{
string str;
string inpstr;
string outstr;
stringstream oss;
cout << "Vvodite stroku ->" << endl;
getline(cin, inpstr, 'n');
oss << inpstr;
outstr.clear();
while (!oss.eof())
{
oss >> str;
if (str.size())
outstr = str + ' ' + outstr;
} cout << outstr << endl;
system("pause");
return 0;}
Приложения:
Вас заинтересует
2 года назад
2 года назад
3 года назад
9 лет назад
9 лет назад
10 лет назад