高手们帮帮忙吧 是关于编译的一个问题
我用visual c++写了一个程序,截取一部分如下:
class huge_int
{public:
huge_int();
friend huge_int operator +(huge_int num1,huge_int num2);
friend istream operator >>(istream &in,huge_int &num);
friend ostream operator <<(ostream &out,huge_int num);
````````````
这部分类的写法应该是正确的吧,但是编译时有问题,编译器提示如下:
(错误指向是该句:friend huge_int operator +(huge_int num1,huge_int num2);)
Compiling...
main.cpp
f:\c语言\huge int\main.cpp(7) : 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.
main.obj - 1 error(s), 0 warning(s)
这到底是什么原因呢?是我的编译器没有装好吗?有文件受破坏了?
希望高手指教,谢谢。