c语言中文件conio.h中window()函数怎么用

来源:百度知道 编辑:UC知道 时间:2024/06/21 21:53:34
#include "C:\\JMSOFT\\CYuYan\\Include\\conio.h"
#include "stdio.h"
int main(void)
{
char ch;
void clrscr();
window ( 10, 10, 70, 11);
textattr(128+YELLOW+(GREEN<<4));
cprintf("Please select a level(1,2,3)you want to play:");
ch=getche();
return 0;
}
不能通过,错在那

#include "conio.h"
#include "stdio.h"
int main(void)
{
char ch;
void clrscr();
window ( 10, 10, 70, 11);
textattr(128+YELLOW+(GREEN<<4));
cprintf("Please select a level(1,2,3)you want to play:");
ch=getche();
return 0;
}

“ch=getche(); ”改成“ch=getch(); ”