C++错误之INTERNAL COMPILER ERROR
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/11 06:16:06
C++错误之INTERNAL COMPILER ERROR
源代码是:
#include
using namespace std;
class complex
{
float real,image;
public:
complex(float r=0,float i=0)
{real=r;image=i;}
void print();
friend complex operator+(complex a,complex b);
friend complex operator-(complex a,complex b);
friend complex operator*(complex a,complex b);
friend complex operator/(complex a,complex b);
};
void print()
{
cout
源代码是:
#include
using namespace std;
class complex
{
float real,image;
public:
complex(float r=0,float i=0)
{real=r;image=i;}
void print();
friend complex operator+(complex a,complex b);
friend complex operator-(complex a,complex b);
friend complex operator*(complex a,complex b);
friend complex operator/(complex a,complex b);
};
void print()
{
cout
我也用VC编译了一下,也有一个错误,不过不是内部编译错误.
这有可能是与编译器内部的一些函数名相同,把这些函数名改下就行了.
另外,还有一些错误:
1、将 void print()改为void complex::print()
2、将 complex c1(2.3,4.6),c2(3.6,2.8),c3;改为
complex c1(2.3f,4.6f),c2(3.6f,2.8f),c3;
因为c++中实数默认为double,而real,image为float
这有可能是与编译器内部的一些函数名相同,把这些函数名改下就行了.
另外,还有一些错误:
1、将 void print()改为void complex::print()
2、将 complex c1(2.3,4.6),c2(3.6,2.8),c3;改为
complex c1(2.3f,4.6f),c2(3.6f,2.8f),c3;
因为c++中实数默认为double,而real,image为float
C++错误之INTERNAL COMPILER ERROR
fatal error C1001: INTERNAL COMPILER ERROR是什么意思
JSP错误:The server encountered an internal error () that preve
Error 500--Internal Server Error
打印预览错误 there was an internal error and internet explorer is
500 Internal Error-The target principal name is incorrect的错误
开机时小车架撞左边机架,报Internal ERROR shutdown Carriage Axis Failure错误
Internal Server Error The server encountered an internal err
500(Internal Server)Error怎么处理?
internal sever error(insert verify code timeout)
internal error - server connection terminated 求翻译.
An internal error occurred during: "Decoration Calculation".