P
Profetas
#include <stdio.h>
typedef enum {FALSE=0, TRUE=1} boolean;
typedef struct {
boolean base[16];
unsigned int fitness;
}individual;
typedef struct{
individual first;
individual second;
}pair;
struct node{
individual member;
struct node* next;
}
typedef struct node Node;
int main(){
printf("teste\n");
return(0);
}
it gives the following error
combine.c:21: two or more data types in declaration of `Node'
typedef enum {FALSE=0, TRUE=1} boolean;
typedef struct {
boolean base[16];
unsigned int fitness;
}individual;
typedef struct{
individual first;
individual second;
}pair;
struct node{
individual member;
struct node* next;
}
typedef struct node Node;
int main(){
printf("teste\n");
return(0);
}
it gives the following error
combine.c:21: two or more data types in declaration of `Node'