请问这个函数定义和调用错在哪里?(新手帖,谢谢帮助)
#include <stdio.h>void showyes();
void main()
{
char ch;
scanf("%c",&ch);
showyes(ch);
}
void showyes()
{
char key;
key=getch();
if (toupper(key)!='Y')
return;
printf("yes!");
}
2013-05-03 19:20
2013-05-03 19:42
2013-05-03 19:58
2013-05-03 20:22
2013-05-03 20:35