Why line 9 (struct plant table[50]; ) causes error in WinAVR-GCC compiler (two or more data types in declaration specyfiers):
Code:
#include <stdio.h> //printf, puts, scantf
struct plant
{
char name[31];
char kind[31];
char origin[31];
int id;
}
struct plant table[50];
void AddPlants(int beginning);
int GetInfo(char description[], char target[31]);
int GetID(int n);
int main(void)
{
...
}
...
I would like to create table table which will include plant structures. How to do this? How to resolve this poblem?