这个错误怎样改?
#include <iostream>using namespace std;
class real
{
public:
real(int j,int k);
friend real operator+(real m,real n);
void show();
private:
int a,b;
};
real::real(int j,int k)
{
a=i;
b=j;
}
real operator+(real m,real n)
{
real reall;
reall.a=m.a+n.a;
reall.b=m.b+n.b;
return reall;
}
void real::show()
{
cout<<a<<" "<<b<<endl;
}
int main()
{
real cs(1,2),cp(3,4);
real temp;
temp=operator+(cs,cp);
temp.show();
return 0;
}
编译出现fatal error C1001: INTERNAL COMPILER ERROR这样的错误,请各位帮忙改下,谢了!
[ 本帖最后由 ku_klox 于 2010-9-1 09:00 编辑 ]