以下是我的课设中的一个函数,执行make的时候提示“undifined symbol gameplay2 in。。。。。。。。”我明明已经定义过了啊(gameplay2函数没发上来)请问这是怎么回事?,我用的TC3.0
#include<graphics.h>
#include<math.h>
#include<bios.h>
#include<dos.h>
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<conio.h>
#define A 0x1e61
#define D 0x2064
#define S 0x1f73
#define W 0x1177
#define ESC 0x011b
#define ENTER 0x1c0d
//definition of the functions
void welcome(int table[30][30]);
void gameplay2(int table[30][30]);
void endimage();
//end of the definition
void endmenu2(int table[30][30]) //人机对战结束菜单
{
int key1;
int flag2=0;
cleardevice();
endimage();
while(1)
{
key1=bioskey(0);
if(key1==S&&flag2==0)
{
flag2=1;
endimage();
setcolor(CYAN);
setfillstyle(1,CYAN);
rectangle(270,260,350,300);
floodfill(320,280,CYAN);
setcolor(WHITE);
outtextxy(315,275,"No,return to menu");
}
else if(key1==W&&flag2==1)
{
flag2=0;
endimage();
setcolor(CYAN);
setfillstyle(1,CYAN);
rectangle(270,210,350,250);
floodfill(320,220,CYAN);
setcolor(WHITE);
outtextxy(315,225,"Yes");
}
else if(key1==ENTER)
{
if(flag2==0)//重玩
{
gameplay2(table);
}
if(flag2==1)//回主菜单
{
welcome(table);
}
}
}
}