[英]error: expected identifier or '(' before 'typedef'|
i'm working since a few weeks on the same project and never had this kind or error. 我几个星期以来一直在同一个项目上工作,从来没有这种或错误。 I got it now without touching to the concerned file, which is down there:
我现在没有接触相关文件,就在下面了:
#ifndef DIJKSTRA_H_INCLUDED
#define DIJKSTRA_H_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define INFINI 100000.0
typedef struct dij
{
int ordre;
float** adjacencePoids;
float* l;
int* pred;
}t_dij;
int choix_action();
int choix_sommet_depart();
int choix_sommet_arrivee();
t_dij* allouer_dijkstra();
t_dij* allouer_dijktra_durees();
t_dij* dijkstra();
void afficher_resultat();
void sauver_resultat();
void detruire_struc();
#endif // DIJKSTRA_H_INCLUDED
This code gives me this error (Compiler is MinGW) 这段代码给我这个错误(编译器是MinGW)
Line 11 error: expected identifier or '(' before 'typedef'|
Thanks! 谢谢!
我怀疑错误在于显示的标头包含在该文件中,还是在此文件之前。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.