random - How to use random_shuffle to shuffle a 2D array C++ -


I have 2D vectors of objects and I want to drag them. What is the syntax for this?

  class node {public: string hex_type = "E"; // to open the int xcoordinate; Int Ycoordinate; Of vector & lt; Reference_wrapper & lt; Node & gt; & Gt; Neighbors; }; Nodes = vector & lt; Vector & lt; Node & gt; & Gt; (Size, vector & lt; node & gt; (size)); // Other place random_shuffle (& nodes [0] [0], and nodes [size-1] [size-1];  

This generates an error that is an entry If you have concerns about the 2D array, then you can call it 1d array in BNXM like this:

  b [i * m + j] = a [i] [j];  

Then you will see array B and user reverse transformation

  one [i / m] [i% m] = b [i];  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -