Advertisement
Kachang404

slow input

Nov 20th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.49 KB | None | 0 0
  1. #include<iostream>
  2. #include<windows.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int entermatrix;
  9.    
  10.     cout << " Press 1 to enter the matrix 0.0 " << endl;
  11.     cin >> entermatrix;
  12.    
  13.     switch (entermatrix){
  14.            case 1:
  15.                 do
  16.                 {
  17.                          
  18.                          Sleep(2);
  19.                          cout << "A B   D   F   H   J   L   N   P   R   T U   W   Y  " << endl;
  20.                          cout << "!   # $   ^ & * ( ) _   - = , . ; '   | ? 0 1   0 1" << endl;
  21.                          cout << "a   c   e   g   i   k   m   o   q   s t   v   x   z" << endl;
  22.                          cout << "1 2 3 4 5 6 7 8 9 0 0 1 2 3 4 5 6 7 8 9 0 1 0 1 1 0" << endl;
  23.                          cout << "0 1   1 0 0   0 1 1 0   1 0 0 0 0 1   1 1 0 1 1   0" << endl;
  24.                          cout << "1 0 0 0   1 1 0   0 1 1 0 1   1 0 0 0 0 0   0   1 1" << endl;
  25.                          cout << "0 0 0 0   1 0 0 0 1   0 1 0 0 0 0   1 0 1 0 1 1 0 0" << endl;
  26.                          
  27.                          
  28.                          }while(entermatrix==1);
  29.                          
  30.                          
  31.                          
  32.                          case 0:
  33.                              
  34.                               cout << "later" << endl;
  35.                               break;
  36.                               system("pause");
  37.                               return 0;
  38.                               }
  39.                               }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement