Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void sort_data(string path, int n)
- {
- ifstream fin;
- if (!fin.is_open())
- {
- cout << "ошибка открытия файла" << endl;
- }
- int * B = new int[n];
- for (int i = 0; i < n; i++)
- {
- fin >> B[i];
- fin.seekg(ios::cur, 1);
- }
- for (int i = 0; i < n; i++)
- {
- cout << B[i] << endl;
- }
- }
- void main()
- {
- string path="constant100.txt";
- sort_data(path,H);
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement