Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. class Tiuringas {
  7.     string kodas;
  8.     int n;
  9.     int busena = 0;
  10.  
  11. public:
  12.    
  13.  
  14.     void get() {
  15.         ifstream inFile("1.txt");
  16.         inFile >> n >> kodas;
  17.     }
  18.     void show() {
  19.         for (int i = 0; i < kodas.size() ; i++) {
  20.             cout << kodas[i];
  21.         }
  22.         cout << endl;
  23.  
  24.        
  25.     }
  26.     void rodykle() {
  27.         system("cls");
  28.         while ((n > 0) && (n == i) && (n < kodas.size())) {
  29.             cout<<
  30.         }
  31.     }
  32. };
  33.  
  34.  
  35.  
  36. int main() {
  37.     Tiuringas t;
  38.     t.get();
  39.     t.show();
  40.     t.rodykle();
  41.    
  42.     system("pause");
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement