注册 登录
编程论坛 C++教室

大家帮我看看什么地方出错了?

yanyananlin 发布于 2007-12-06 12:08, 709 次点击
#ifndef Complex_H
#define Complex_H
#include <iostream>
using namespace std;
class Complex
{   friend Complex &operator +(const double &,const Complex &);
public: Complex(double=0,double=0);
            SetComplex(double,double);
   PrintComplex();
            Complex operator + (const Complex &);
   Complex operator + (const double &);
private:   double realpart;
     double imaginarypart;
};
#endif



--------------------Configuration: complex - Win32 Debug--------------------
Compiling...
complex.cpp
e:\program files\msdev98\my project\安林\complex\complex.h(6) : 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 时出错.
complex.exe - 1 error(s), 0 warning(s)
3 回复
#2
yanyananlin2007-12-08 19:49
大家帮我看看啊,谢谢了~
#3
huaruta2007-12-08 22:14
你试试把你的编译器关闭工作组然后在打开你的程序编译,编译的错误是你的内部编译问题。
#4
yanyananlin2007-12-09 17:12
哦,谢谢了
1