Forum: C++ May 16th, 2004 |
| Replies: 4 Views: 3,232 Three Great Virtues Of A Programmer (http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=Three+Great+Virtues+of+a+Programmer&btnG=Search)
What's the error you see? It's much easier to check if you... |
Forum: C++ May 16th, 2004 |
| Replies: 4 Views: 3,232 and what's wrong? (ie. does it not compile, or does it not work as you think it should?) |
Forum: C++ May 6th, 2004 |
| Replies: 38 Views: 49,306 Why did you do that to your program??!
Your previous variant with do {
x.disp_array();
x.get_player1_move();
x.get_player2_move();
x.winner();
} loop and TicTacToe constructor doing... |
Forum: C++ May 4th, 2004 |
| Replies: 38 Views: 49,306 As far as I can see, you have an int winner() function in TicTacToe class, which returns 1 if the first player has won, 2 if second player has won, 0 if nobody won yet.
end = x.winner() will... |
Forum: C++ May 3rd, 2004 |
| Replies: 38 Views: 49,306 I didn't try to run it, or even compile, but the most obvious issues for me are:
do..while loop in main() doesn't assign any value to end. Perhaps it should have this line:
end = x.winner();
... |
Forum: C++ Apr 29th, 2004 |
| Replies: 38 Views: 49,306 Perhaps,
int x,y;
cout << "Enter coordinates for your X: ";
while(true) {
cin >> x;
if ((x>=3) || (x<0))
cout<<endl<<"invalid move. try again with a number from 0 to 2: ";
else... |
Forum: C++ Apr 6th, 2004 |
| Replies: 9 Views: 3,997 Be warned that Borland ceased further C++Builder development...
(So Delphi [pascal] or MSVC [C++] would be a better choice to start with) |
Forum: C++ Apr 6th, 2004 |
| Replies: 9 Views: 3,997 OK then, ask him what compiler he advices to use (Microsoft's, I guess)
The compiler itself is not enough. You may also need additional files (MFC header files, for example) which are not included... |
Forum: C++ Apr 6th, 2004 |
| Replies: 9 Views: 3,997 I guess you'll need Microsoft's compiler, afaik their code (MFC) won't compile by other compilers. The easiest way would be to get Microsoft Visual C++ (but it costs money :))
Can't you ask... |