Hello, I have started with C++ and have read some tutorials, so now I'm trying to make something, but i got a problem, and it's probaly easy to fix, but I can't do it.
I try to place a value on a multidimension array, where user input select where to put:
But the program just get unexpected error when i have pressed enter at input :SCode:int board[25][25]; char pinp[3]; //Player input cin>>pinp; cin.ignore(); board[(int)pinp[0]][(int)pinp[2]]=1; //Input is 1.3