My teacher told me to remove this from the constructor

cout<<"Enter your coordinates player1: ";
cout<<"\nEnter your coordinates player2: ";

He also told me to use just one function for both & use player # as an argument to the function.

Edited by __avd: Added [code] tags. Encase your code in: [code] and [/code] tags.


ya know marceta right,if you dont think for your self you will never really progress.Knowledge is diffrent from wisdom.If you cant process the knowledge you have you will be really nothing more than a hardisk.Learn and remember this.

Never put i/o in classes.Use other funtions for that and call the construtor with parameter.Better yet use contructors only to assign default values to the variable and use a funtion like init() to initialise the variables.

This would sure enhance the re usability of your code.(I agree with you teacher)


I'm interesting in this tic-tat-toe program too. Just wonder do you have any idea in the program logic so that the computer will never loose.
Thanks a lot!


i seem to be having the same problem with the tic tac toe. I honestly have no idea where to start and i am in high school taking a college course. your explantions have been useful but im still a bit confused about everything.


>Ok, how would you implement the Tic.c program recursively?
So start your own thread, ask a proper question and check out the rules. We have no idea what you are trying to implement recursively (aside from the fact that it's a Tic Tac Toe game), and you haven't shown as any code.

Votes + Comments
random rep++ from salem

start figurin something out for yourself! youve had plenty of help.

how to make this program if(pass==asd123) its just because i dont know whats wrong about this program

Votes + Comments
Start a new thread, don't dig up something 3 years old with "me too"
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.