| | |
Tic Tac Toe Homework
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2005
Posts: 10
Reputation:
Solved Threads: 0
Hello,
I am working on this tic tac toe program for my computer science class to develop a tic tac toe game that uses artifical intelegence for a computer player. Anyway, I have a few question, help with any or all.
First, I am getting unresolved externals errors. I do not know how to find where these are in my program when I get them. So my first question is, and I am using microsoft visual C++ 6.0 as a compiler, how do I find where the unresolved externals are to fix them? Every time I ask my teacher, she just fixxes it for me, so I dont know how to find them myself.
Second, as we only learned functions 3 weeks ago, I am not quite sure I have properly used function declarations, function calls, and function defenitions. Any input on how I have used these?
Last, I can tell my compplay function is unnessecarily complex, it just repeats looking for X's then O's using the same code. How could I condense this to be more efficient.
As always, thanks a bunch. I really appriciate those who give there time helping new commers.
I am working on this tic tac toe program for my computer science class to develop a tic tac toe game that uses artifical intelegence for a computer player. Anyway, I have a few question, help with any or all.
First, I am getting unresolved externals errors. I do not know how to find where these are in my program when I get them. So my first question is, and I am using microsoft visual C++ 6.0 as a compiler, how do I find where the unresolved externals are to fix them? Every time I ask my teacher, she just fixxes it for me, so I dont know how to find them myself.
Second, as we only learned functions 3 weeks ago, I am not quite sure I have properly used function declarations, function calls, and function defenitions. Any input on how I have used these?
Last, I can tell my compplay function is unnessecarily complex, it just repeats looking for X's then O's using the same code. How could I condense this to be more efficient.
As always, thanks a bunch. I really appriciate those who give there time helping new commers.
•
•
•
•
Originally Posted by notdumb
First, I am getting unresolved externals errors. I do not know how to find where these are in my program when I get them. So my first question is, and I am using microsoft visual C++ 6.0 as a compiler, how do I find where the unresolved externals are to fix them? Every time I ask my teacher, she just fixxes it for me, so I dont know how to find them myself.
C++ Syntax (Toggle Plain Text)
void draw(char box [9]); void draw()
•
•
•
•
Originally Posted by notdumb
Second, as we only learned functions 3 weeks ago, I am not quite sure I have properly used function declarations, function calls, and function defenitions. Any input on how I have used these?
•
•
•
•
Originally Posted by notdumb
Last, I can tell my compplay function is unnessecarily complex, it just repeats looking for X's then O's using the same code. How could I condense this to be more efficient.
I haven't looked very closely. But this exercise is more for you. Perhaps someone will provide a more specific hint.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
![]() |
Similar Threads
- Tic-Tac-Toe (C++)
- tic-tac-toe in c++ with GUI (C++)
- Tic Tac toe help (C)
- Tic Tac Toe AI help, where to reset variables. (C++)
Other Threads in the C++ Forum
- Previous Thread: Distance between 2 points
- Next Thread: Combining a string To Label
| Thread Tools | Search this Thread |
api array beginner bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion count database delete desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






