SmileeTiger
Programmer
Hi you will have to forgive me if this is kinda a dumb question but I am more of a C++ programmer than a C programmer...
What I want to do is have a struct:
struct state {
int seed;
int who;
int lock;
};
and create an array of then according to user input so something like this:
int main()
{
int number;
printf ("How many?"
scanf ("%i", );
struct state Readers[number];
}
Is there a way to do this?
Thanks!
Cory
What I want to do is have a struct:
struct state {
int seed;
int who;
int lock;
};
and create an array of then according to user input so something like this:
int main()
{
int number;
printf ("How many?"
scanf ("%i", );
struct state Readers[number];
}
Is there a way to do this?
Thanks!
Cory