2007-06-14 10:01:43 UTC
linker error: undefined symbol _main in module c0.ASM
here is my program:
#include
#include
#include
#include
#include
#include
void gdriver(void);
void title(void);
void name(void);
char p1[16],p2[16];
void main()
{gamesequence();}
void gdriver(void)
{int gd=DETECT,gm;
initgraph(&gd,&gm,"c:/tc3/BGI");
}
void name()
{title();
setcolor(BLUE);
settextstyle(2,0,6);
outtextxy(205,180,"Please enter your names:");
setfillstyle(SOLID_FILL,RED);
bar(150,250,getmaxx()-150,getmaxy()-150);
gotoxy(21,17);
cout<<"Player 1:";
gotoxy(31,17);
cin>>p1;
gotoxy(21,19);
cout<<"player 2:";
gotoxy(31,19);
cin>>p2;
}
void title(void)
{clrscr();
char msg[50];
setcolor(4);
rectangle(628,200,0,0);
setcolor(3);
settextstyle(SANS_SERIF_FONT, HORIZ_DIR,9);
sprintf(msg,"TICTACTOE",9);
outtextxy(95,30,msg);
getch();
closegraph();}