vc6编译的时候出现这个错误
error C2803: 'operator *' must have at least one formal parameter of class type
...全文
9697打赏收藏
关于一个重载的问题......must have at least one formal parameter of class type????????
#include "stdafx.h" #include bool operator *(int &a,int &b); int main() { int a,b; cin>>a>>b; if(a*b) cout<<"!!!"; } bool operator *(int &a,int &b) { return a<b; } vc6编译的时候出现这个错误 error C2803: 'operator *' must have at least one formal p