|
#include<iostream>
using namespace std;
class Myclass
{
int num;
public:
Myclass(int a){num=a;};
friend Myclass &operator +(const int a,const Myclass t);
};
Myclass & Myclass::operator +(const int a,const Myclass t)
{
this->num=a+t.num;
return *this;
}
错误提示是:
Compiling...
grre.cpp
E:\C++\c++\fgh\grre.cpp(8) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Error executing cl.exe.
grre.obj - 1 error(s), 0 warning(s)
这是什么错误 |
|