Making a game of checkers on C++ win32, visual studio
when i want a piece to move, i type:
cout << "What piece do you want to move? (C4)" << endl;
i type in 'cin' after to get the players input, but how do i get it to store the players input in a certain variable?
im going to have a list of variables:
1 2 3
string a1
string a2
string a3
etc
so if the user types in a2, it automatically goes to that variable and then asks the user "where do you want the piece to be moved to?".
ok, so that link explains how to write to external text files, read them, etc. is this required to extract the character from the string the player inputs?