Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int index = 0; index < myColumns; index++)
- {
- index3 = 0;
- for (int rowindex2 = 0; rowindex2 < myRows; rowindex2++)
- {
- if (mySize > (index+index3))
- {
- //0 8 16 24 32 40
- //1 9 17 25 33 41
- //2 10 18 26 34
- //3 11 19 27 --> 35 får inte inträffa
- //4 12 20 -> 28 36 högre får inte inträffa
- //Debug
- std::cout << "Kollade:" << index + index3 << " " << index+myColumns*rowindex2 << std::endl;
- index3 += myColumns+1;
- }
- }
- }
- ## myColumns = 7
- ## myRows = 6
Add Comment
Please, Sign In to add comment