Guest User

Untitled

a guest
Oct 22nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. using namespace std;
  4.  
  5.  
  6.  
  7. int _tmain(int argc, _TCHAR* argv[])
  8. {
  9. //string input = "";
  10. //get s string
  11. //cout << "Enter a
  12.  
  13. int x = 0;
  14. /*create an array */
  15. int gArray[10][10];
  16. /*fill the array*/
  17. for(int row = 0; row < 10; row++)
  18. {
  19. for (int col = 0; col < 10; col++)
  20. {
  21. cout << &gArray[row][col] << endl;
  22. gArray[row][col] = x++;
  23. //cout << x <<endl;
  24. //cout << &x <<endl;
  25. cout << &gArray[row][col] <<endl;
  26.  
  27. }//end col loop
  28. }//end row loop
  29. return 0;
  30. };//end main method
Add Comment
Please, Sign In to add comment