Original Post
I was going through an old program to make it a little more readable - implementing classes - and I have run into the problem of printing the board from my board function after the user inputs a choice to start a game. I have tried reading from my book to explain how to do this correctly but it leads me in circles. Am I going about using the printBoard() function from another class within my printMenu() function in my menu class by making printBoard() a friend function? If so how would I complete this task withOUT errors? in Menu Class: friend void printBoard(void); No Definition in Menu CLass in Board Class void Board::printBoard(void) { // assuming that the board array is alread declared for(char a = 0; a < 9; a++) board[a] = ' '; cout << " " << "|" << " " << "|" << " " << endl; cout << " " << board[0] << " " << "|" << " " << board[1] << " " << "|" << " " << board[2] << " " << endl; // previous lines of code are re-written until I reached board[8] << " " << endl; }