第1个回答 2015-10-16
解决方法是把
#define N 10
这句话放在所有包含头文件include语句的下面的位置
也可以建议不要用宏
const int N=10;
这样也可以
N是个宏会被替换成10代码变成
typedef struct _IMAGE_SYMBOL {
union {
BYTE ShortName[8];
struct {
DWORD Short; // if 0, use LongName
DWORD Long; // offset into string table
} Name;
PBYTE LongName[2];
} 10;本回答被网友采纳
第2个回答 2020-04-02
头文件的上方有个0.把那个去掉
/**
A=1,
B=50,
C=3,The
roots
of
the
1x^2+50x+3=0
are:
x1=-49.9399
x2=-0.0600719.
A=5,
B=4,
C=6,
There
are
non-real
roots.(b*b-4*a*c<0)
A=0,
B=0,
C=0,The
roots
of
the
0x^2+0x+0=0
are:
x1=-1.#IND
x2=-1.#IND.(It
couse
the
infinite
solutions
when
A,B
and
C
are
all
0.)
A=10,
B=2,
C=1,There
are
non-real
roots.(b*b-4*a*c<0)
A=2,
B=7,
C=3,The
roots
of
the
2x^2+7x+3=0
are:
x1=-3
x2=-0.5.
*/
0
//就是这个,有这个玩意编译绝对通不过
#
include<iostream>
#
include<cmath>
第3个回答 2019-03-08
不是,枚举里的内容只能是C的标识符,而标识符是不能以数字开头的,你可以改为: enum
month{m1,m2,m3,m4,m5,m6,m7,m8,m9,m10,m11,m12};
这样就不会错了。