Greetings,
I have the following code:
typedef struct {
int volts;
int limit;
int time;
}mystep;
typedef struct {
mystep steps[4];
}myprofile;
myprofile profiles[4];
This gives me an array[4] of an array[4] of structures (3 elements).
I cannot figure out the syntax to initialize this.
No matter what I try I get some type of error.
Any ideas are greatly appreciated.
Thanks
I have the following code:
typedef struct {
int volts;
int limit;
int time;
}mystep;
typedef struct {
mystep steps[4];
}myprofile;
myprofile profiles[4];
This gives me an array[4] of an array[4] of structures (3 elements).
I cannot figure out the syntax to initialize this.
No matter what I try I get some type of error.
Any ideas are greatly appreciated.
Thanks