关于菜单
#include "stdio.h" ///包含文件#include "math.h"
#include "string.h"
void f1(); ///原型说明
void f2();
void f3();
struct score
{ char num[13];
char name[10];
char sex[5];
int score[3];
};
struct score chart[3]={ {"201201"," 李丹","女",77,88,92},
{"201202","陈翔","男",75,77,78},
{"201203","耿迪","男",82,84,89} };
main() ///主函数--菜单
{ for(;;)
switch(menu_select())
{ case 1 :f1();break;
case 2: f2();break;
case 3 :f3();break;
case 4 : int exit(0);
}
}
。。。。。。。。。。。。。。。。。。。。
warning C4013: 'menu_select' undefined; assuming extern returning int
c(26) : error C2143: syntax error : missing ';' before 'type'
c(65) : error C2143: syntax error : missing ';' before 'type'
执行 cl.exe 时出错.
怎么改??SOS