Advertisement
Guest User

Untitled

a guest
May 20th, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string>
  4. using namespace std;
  5.  
  6.  
  7.  
  8. int main()
  9. {
  10. int flag=0;
  11. int f=1;
  12. int j = 0;
  13. string s1, s2, s3, s4, s5, mainStr;
  14. string mas[15] = {};
  15. string name[10];
  16. setlocale(LC_ALL, "Russian");
  17. ifstream file;
  18. file.open("standart input.txt");
  19.  
  20. // Считка слов из файла
  21. for (int i = 0; i < 15; i++)
  22. {
  23.  
  24. file >> mas[i];
  25. cout << s1 << endl;
  26.  
  27. }
  28.  
  29. for (int i = 1 ; i < 15; i+=3)
  30. {
  31.  
  32. for ( j ; j >= 0; j++)
  33. {
  34.  
  35. name[j] = mas[i];
  36. break;
  37. }
  38. j++;
  39. }
  40.  
  41. //for (size_t i = 0; i < 5; i++)
  42. //{
  43. // for (size_t j = 5; j <= 5 ; j--)
  44. // {
  45. // if(name[i] == name[j])
  46. // {
  47. //
  48. // }
  49. // }
  50.  
  51. //}
  52.  
  53.  
  54.  
  55. cout << name[flag];
  56. cout << s1 << endl;
  57. cin >> s2;
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement