Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- //string input = "";
- //get s string
- //cout << "Enter a
- int x = 0;
- /*create an array */
- int gArray[10][10];
- /*fill the array*/
- for(int row = 0; row < 10; row++)
- {
- for (int col = 0; col < 10; col++)
- {
- cout << &gArray[row][col] << endl;
- gArray[row][col] = x++;
- //cout << x <<endl;
- //cout << &x <<endl;
- cout << &gArray[row][col] <<endl;
- }//end col loop
- }//end row loop
- return 0;
- };//end main method
Add Comment
Please, Sign In to add comment