Guest User

Untitled

a guest
Jan 19th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. private:
  2. vector < vector <int> > Matrix;
  3. vector < vector <int> > temp_m;
  4. vector <int> elements
  5. string input;
  6. int value;
  7. function()
  8. {
  9. //Initialize Both Matrices (one which holds the puzzle and the
  10. //other which holds the values between 1 and 9
  11. //Create a vector of vectors:
  12. for(int i = 0; i < 9; i++)
  13. elements.push_back(i+1);
  14. for(int i = 0; i < 9; i++)
  15. Matrix[i].push_back(elements); //ERROR HERE
  16. }
  17.  
  18. class MyClass
  19. {
  20. public:
  21. MyClass::MyClass()
  22. : row(9,0), elements(9)
  23. {
  24. }
  25.  
  26. private:
  27. vector < vector <int> > Matrix;
  28. vector < vector <int> > temp_m;
  29. vector <int> row;
  30. vector <int> elements;
  31. string input;
  32. int value;
  33. }
  34.  
  35. A::A() : row(9, 0), elements(9) {}
  36.  
  37. private:
  38. vector<int> row;
  39. vector<int> elements;
Add Comment
Please, Sign In to add comment