Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

c++的运算符重载

Posted by whosyourdaddy at 2010-10-30 02:19:55
为啥我把它写成成员函数
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator