#include <iostream>
using namespace std;
class Point
{
private:
int x;
int y;
public:
Point(){};
Point (int a,int b)
{
x=a;
y=b;
}
~Point(){};
void set(int a,int b);
int get_x(){return x;}
int get_y(){return y;}
void print() const
{
cout<<"("<<x<<","<<y<<")\n";
}
friend Point operator + ( Point &a,Point &b);
};
void Point::set(int a,int b)
{
x=a;
y=b;
}
point operator + ( Point &a,Point &b)
{
return (a.x+b.x,a.y+b.y);
}
void main()
{
Point a,b;
a.set(3,2);
b.set(1,5);
(a+b).print();
//add(a,b).print();
}
:\C++\c++作业\3\d.cpp(85) : 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
执行 cl.exe 时出错.
请问:这个是什么意思??