I'm trying to create a simple Tic Tac Toe game in C++ for two players .. with the names inputs and stuff ... the board should not be like graphical ... simple text .. using x and o.
Thanks
(Please send the file in .cpp extension)
I'm trying to create a simple Tic Tac Toe game in C++ for two players .. with the names inputs and stuff ... the board should not be like graphical ... simple text .. using x and o.
Thanks
(Please send the file in .cpp extension)
what does signature stand for?
Do not worry about the warnings here, they can be removed mainly by type casting.
Compiler:Borland C++ 5.0
You Could prolly try doing it yourself eh.
At least try and when u run into a problem then post ur problem on here. Thats what I do I get tons of help from these boards but I at least throw a half decent atempt at it first.
can somoene please edit it so it works in dev c++ 4?
ive tried to, but i kept getting errors for something else, its all becuase of one sleep command, ive tried to change it to something else, even deleting it! no matter wut ive tried to do it gets errors, thats why i wanted someone to convert it so it will work in dev c++ 4 so i can see wut it should look like in dev c++ 4
Code:#include <windows.h> #include <iostream.h> void sleep(int sleep_for) { int started = timeGetTime(); for(;;) { int current = timeGetTime(); if(current-sleep_for>=started) break; } } int main() { cout<<"I am sleeping..."<<endl; sleep(1000); cout<<"I am done sleeping...."<<endl; sleep(1000); return 0; }
i know how to use the sleep command, but it is acting up inside the source!
line:213 message: implicit declaration of function 'int sleep(...)'
is on line 213Code:sleep(2);
You could try searching Planetsourcecode.com before you start posting messages here looking for programs..
Edit: Meh, you could try this source I made awhile back when I was first learning C++.
http://www.d2backstab.com/~dualcatfish/Tic Tac Toe.cpp
Last edited by Dual-Catfish; 06-27-2002 at 08:30 PM.
Here is the compiled TicTacToe program along with source code, in a zip file. The compiler used was Borland C++ 5.0.
Thanks for all those replies!
But... sorry to say .. I dont use Borland C++ Compiler.
I use Visual C++ ... But as soon as i found out that everyone of you uses Borland .. I think it's better than C++ , Right?
Oh well .. i know there's a free version of Borland C++ on the net, and if you recommend it .. i'll go find it and use it
Thanks.
what does signature stand for?
Can somebody do it in Dev-C++ ? Please
Thanks
what does signature stand for?
The reason i didnt do it because: I Dont Know How!!
what does signature stand for?