SHARE
TWEET

Untitled

a guest Jul 20th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cstring>
  3. #include "gamecursor.h"
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     unsigned int n, m;
  10.     cout << "Value n: ";
  11.     cin >> n;
  12.     cout << "Value m: ";
  13.     cin >> m;
  14.     vector<vector<size_t>> test(n, vector <size_t> (m));
  15.     for (size_t i  = 0; i < test.size(); i++)
  16.     {
  17.         for (size_t j = 0; j < test.size(); j++)
  18.         {
  19.             test[i][j] = i + j;
  20.         }
  21.     }
  22.     for (size_t i  = 0; i < test.size(); i++)
  23.     {
  24.         cout << endl;
  25.         for (size_t j = 0; j < test.size(); j++)
  26.         {
  27.             cout << test[i][j] << ' ';
  28.         }
  29.     }
  30.     return 0;
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top