#ifndef 标识符 问题
#ifndef PARSEEVEN_H
#include<stdio.h>
#define MAX_ENTRY 512
#define MAXCOUNT 1024
//1===========================================================
struct JVM
{
int moduletype;
int returntype;
char freebytes[MAXCOUNT];
char heapbytes[MAXCOUNT];
char javavendor[MAXCOUNT];
};
int parse_JVM(const char *pxmlsrc,struct JVM *request);
#endif
为什么编译不过,#ifndef PARSEEVEN_H之后要加上#define PARSEEVEN_H呢?
它和C书上说的不一样,书上说
#ifndef RUN
printf("================\n");
#endif
而没有#define RUN呢 大峡说说