プロジェクトをコンパイルしようとしていますが、ヘッダー ファイルでエラー (唯一のエラー) が発生しています。
error: expected specifier-qualifier-list before ‘draw’
問題のあるコード行は次の場所にあります。
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#define LNAME 129
#define DNUM 17
typedef struct {
char name[LNAME];
double x[DNUM];
double y[DNUM];
double x_point[DNUM];
double y_point[DNUM];
int draw;
draw = 1; //<< the line GCC references in the error for reference
memset(name, 0, sizeof(name));
memset(x, 0, sizeof(x));
memset(y, 0, sizeof(y));
} Figure;
私はCにかなり慣れていないので、誰かが少し洞察を与えることができれば、私はそれを感謝します。