Advertisement
pmcgee

Letter array

Mar 1st, 2020
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #pragma   hdrstop
  2. #include <iostream>
  3. #include <vector>
  4. using     namespace std;
  5.  
  6. int main()
  7. {
  8.     typedef std::vector <   int > V_int;
  9.     typedef std::vector < V_int > Letter;
  10.  
  11.     Letter K { { 1, 0, 0, 1, 0 },
  12.                { 1, 0, 1, 0, 0 },
  13.                { 1, 1, 0, 0, 0 },
  14.                { 1, 0, 1, 0, 0 },
  15.                { 1, 0, 0, 1, 0 }
  16.              };
  17.  
  18.     for (auto v : K ) {
  19.          for (auto i : v)
  20.               if (i == 1)    { cout << "*" ; }
  21.               else           { cout << " " ; }
  22.          cout << "\n";
  23.     }
  24.  
  25.     cout << endl;
  26.     int x; cin >> x;
  27.     return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement