| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
c++的运算符重载为啥我把它写成成员函数
BIG BIG::operator *(BIG &b);
就会报这个错呢?我用vs2005本地编译就木有问题。还是说VS2008把这个改了?
Main.cpp(109) : error C2679: binary '*' : no operator found which takes a right-hand operand of type 'BIG' (or there is no acceptable conversion)
Main.cpp(14): could be 'BIG BIG::operator *(BIG &)'
while trying to match the argument list '(BIG, BIG)'
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator