Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- using namespace std;
- int main()
- {
- int flag=0;
- int f=1;
- int j = 0;
- string s1, s2, s3, s4, s5, mainStr;
- string mas[15] = {};
- string name[10];
- setlocale(LC_ALL, "Russian");
- ifstream file;
- file.open("standart input.txt");
- // Считка слов из файла
- for (int i = 0; i < 15; i++)
- {
- file >> mas[i];
- cout << s1 << endl;
- }
- for (int i = 1 ; i < 15; i+=3)
- {
- for ( j ; j >= 0; j++)
- {
- name[j] = mas[i];
- break;
- }
- j++;
- }
- //for (size_t i = 0; i < 5; i++)
- //{
- // for (size_t j = 5; j <= 5 ; j--)
- // {
- // if(name[i] == name[j])
- // {
- //
- // }
- // }
- //}
- cout << name[flag];
- cout << s1 << endl;
- cin >> s2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement