So i made now a struct for the stations i want to buy:
typedef struct{
int id;
int x;
int y;
int flag;
int entfx;
int entfy;
}ownstation;
ownstation neu[10];
Is it correct to make an array now if i for example don´t want to have more than 10 stations?
then i have found following for this malloc:
char * String; String = (char *) malloc(1000);
so if the code would be:
if (klicking on "buy"){
do what?
}
EDIT:
ownstation* neu(neu[10](int id[10]));
something like this maybe? (i know that it is not correct, but maybe i am on the right way)