Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
422 B
0
Indexable
Never
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
	setlocale(LC_ALL, "ru");
	ifstream in("get.txt");
	vector<string> abo;
	string aboba;
	string a;
	for (int i = 1; getline(in, a); i++)
	{
		abo.push_back(a);
	}
	sort(abo.rbegin(), abo.rend());
	for (int i = 0; i < abo.size(); i++)
	{
		cout << abo[i] << endl;
	}
}