and i ask the user to input two numbers (the row and then the collum)
cout << "Please enter the row to enter a number to" << endl;
cin >> row;
cout << "Please enter the collum to enter a number to" << endl;
cin >> collum;
the user could then enter (E.G. 2 & 3) so row = 2 and collum = 3
how would i take these numbers and make it so that in the selected cell of the array the it automatically enters a "X"? with the 2 & 3 the number would be at the bottom of teh center collum.
Arrays are numbered from 0 to n-1, in your case 3 would be out of bounds. But let's say the user has entered row=1 and column=2 (which would translate to row 2, column 3).
To insert data there you use the [] operator as such: num[row][column] = //...user data;
@Darkmaster
the code works fine but it saves the values to the locations just after A and overrides whatever is in there and is of course not safe, it can delete important values from the memory.
float num[3][3];
int row , collum; // Spelling of column is incorrect
cout << "Please enter the row to enter a number to" << endl;
cin >> row;
cout << "Please enter the collum to enter a number to" << endl;
cin >> collum;
cout<<"Now enter the number you want to put in the cell"<<endl;
cin >> num[row-1][collum-1];