|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
这个问题我看不出错误,下面提示的信息看不懂啊!
#include<iostream.h>
void main()
{
bool isVower(char x);
char y;
cin>>y;
if(isVower(char y))
cout<<"ture"<<endl;
else
cout<<"false"<<endl;
}
bool isVower(char x)
{
if(x=='a'||x=='e'||x=='i'||x=='o'||x=='u')
return true;
else
return false;
}
-----Configuration: d - Win32 Debug--------------------
Compiling...
d.cpp
C:\Documents and Settings\Administrator\桌面\d.cpp(7) : error C2144: syntax error : missing ')' before type 'char'
C:\Documents and Settings\Administrator\桌面\d.cpp(7) : error C2660: 'isVower' : function does not take 0 parameters
C:\Documents and Settings\Administrator\桌面\d.cpp(7) : error C2059: syntax error : ')'
C:\Documents and Settings\Administrator\桌面\d.cpp(9) : error C2181: illegal else without matching if
执行 cl.exe 时出错.
d.obj - 1 error(s), 0 warning(s)
|
|