Please help me guys..
i need all your knowledge about this program..
kindly check where's the wrong here..
i need to program a tic tac toe. ONLY user can input..
i dont have any idea..
tnx..
have a great day
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <graphics.h>
#include <dos.h>
void main(){
//void draw_board();
//void draw_x();
//void draw_O():
//}
int x,y,a,b;
clrscr();
for(a=2;a<=65;a++){
gotoxy(2+a,22);printf("\2");
}
for(b=2;b<=65;b++){
gotoxy(2+b,22);printf("\3\1");
delay(90);
}
gotoxy(35,5);printf("-\3- TIC-TAC-TOE GAME -\3-");
gotoxy(x,y);printf( "\n\n\t\t|\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4|\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t|\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4|\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t|\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4|\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t\5 \5 \5 \5\n");
gotoxy(x,y);printf( "\t\t|\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4|\n");
printf("\t\t\3 Enter Column:");
printf("\t\t\t\3 Enter Row:");
//}}
//void drawX(){
//gotoxy(12,12);printf(" ");
//gotoxy(x,y);printf("* *** *** *");
//gotoxy(x,y);printf(" * *** * ");
//gotoxy(x,y);printf(" * ** * ");
//gotoxy(x,y);printf(" * *** * ");
//gotoxy(x,y);printf("* *** *** *");
//void draw O(){
//gotoxy(x,y);printf(" ********");
//gotoxy(x,y);printf("*** ***");
//gotoxy(x,y);printf("*** ***");
//gotoxy(x,y);printf("*** ***");
//gotoxy(x,y);printf(" ********");
getche();
}