Dec 8, 2021 at 2:03am
...
Last edited on Dec 10, 2021 at 6:19pm
Dec 8, 2021 at 5:32am
You were asked in a previous thread to always use code tags.
Apparently that didn't sink in.
Dec 8, 2021 at 9:49am
how do i make the program say who is the winner


For tic-tac-toe there are only a finite number of winning positions. One way is to have an array of winning positions and check current board against those. Another way is to have multiple if-statements. In either case you need to decide what is a winning board.

[In 3 days you haven't added to my previous code - and then ask for further help!]
http://www.cplusplus.com/forum/beginner/281236/

Topic archived. No new replies allowed.