ciao raga!
Ho le seguenti strutture che vanno ad implementare due type. Dunque:
Ho una funzione
gli errori che ne nascono sono:
parse error before `*'
warning: data definition has no type or storage class
conflicting types for `g_empty'
previous declaration of `g_empty'
aiutatemi vi prego..sto perdendo la testa...
Ho le seguenti strutture che vanno ad implementare due type. Dunque:
Codice:
typedef struct edge
{
int key;
struct edge *next;
} edge;
typedef struct graph
{
int nv; /* numero di vertici del grafo */
edge **adj; /* vettore con le liste delle adiacenze */
} graph;
Ho una funzione
Codice:
graph *g_empty(int n);
gli errori che ne nascono sono:
parse error before `*'
warning: data definition has no type or storage class
conflicting types for `g_empty'
previous declaration of `g_empty'
aiutatemi vi prego..sto perdendo la testa...