ZKX's LAB

stm32包含头文件出错 头文件包含出错

2021-03-07知识15

C语言,头文件总是无法在编译中出错

CDatabase 包含头文件 afxdb.h 出错 5tyr

头文件包含出错,望大虾们指点 /这是我工程里的一个complex.h文件类名:Complex产生时间:2002/10/16所属文件:complex.h功能:对复数进行诸如+,-,*,/,+,-=,*=,/操作ifndef COMPLEX_Hdefine COMPLEX_H修改时间:2003年7月24日 21:00includeclass Complex{public:Complex():_real(0),_imag(0){}explicit Complex(double r):_real(r),_imag(0){}Complex(double r,double i):_real(r),_imag(i){}Complex&operator+(const double&d){real+d;return*this;}Complex&operator+(const Complex&c){real+c._real;imag+c._imag;return*this;}Complex&operator-=(const double&d){real-=d;return*this;}Complex&operator-=(const Complex&c){real-=c._real;imag-=c._imag;return*this;}Complex&operator*=(const double&d){real*=d;imag*=d;return*this;}Complex&operator*=(const Complex&c){double re=_real;double im=_imag;real=re*c._real-im*c._imag;imag=re*c._imag+im*c._real;return*this;}Complex&operator/(const double&d){real/d;imag/d;return*this;}Complex&operator/(const Complex&c){double re=_real;double im=_imag;double d=c._real*c._real+c._imag*c._。

vs包含自己写的头文件出错 从windows资源管理器中确认一下second.h和1.cpp是否在同一个文件夹下面。

stm32包含头文件出错 头文件包含出错

#头文件包含出错

qrcode
访问手机版