前辈们,可不可以帮我(c++问题)
coder 2007-07-09 02:05:21 #include"iostream.h"
class fun
{
public:
void couttt()
{
cout<<"cout can cout"<<endl;
}
};
void main()
{
fun fu;
cout<<fu.couttt()<<endl;//错误行
}
错误提示!!!!!!!!
E:\音乐\lianxi\virtualfun\virtualfun.cpp(15) : error C2679: binary '<<' :
no operator defined which takes a right-hand operand of type 'void' (or
there is no acceptable conversion)
Error executing cl.exe.
为啥错了?