Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- using namespace std;
- class Tiuringas {
- string kodas;
- int n;
- int busena = 0;
- public:
- void get() {
- ifstream inFile("1.txt");
- inFile >> n >> kodas;
- }
- void show() {
- for (int i = 0; i < kodas.size() ; i++) {
- cout << kodas[i];
- }
- cout << endl;
- }
- void rodykle() {
- system("cls");
- while ((n > 0) && (n == i) && (n < kodas.size())) {
- cout<<
- }
- }
- };
- int main() {
- Tiuringas t;
- t.get();
- t.show();
- t.rodykle();
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement