I'm making a tic tac toe function that has a computer as the x (first player) and then the user as the o (second player). So far my code is:
using namespace std;
cout << board;
cout << "Please enter coordinates for your move: " << endl;
cin >> o
In the function void nextMove I need to create a random number generator to put the x token on the array. I looked it up but didn't find much and I cant find the section in my book, also should I be using float for the o declaration to input coordinates?