How can a mass be made in a mass?



  • We've got to do a few masses in one set. As an example, I can show how this works. Python:

    numbers = [[0,1,2],[0,3,6],[3,4,5],[1,4,7],[6,7,8],[2,5,8],[0,4,8],[2,4,6]]
    print(numbers[1][1]) #3
    

    Please indicate how this can be implemented in the language C++I'll be grateful.



  • std::vector<std::vector<int>> numbers = {{0,1,2},{0,3,6},{3,4,5},{1,4,7},{6,7,8},{2,5,8},{0,4,8},{2,4,6}};
    std::cout << numbers[1][1];
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2