typedef struct trans * Trans;
typedef struct state{
int f;
char label[20];
trans * TrasitionsArray[10];
}state;
struct trans{
state * from;
state * to;
char label;
};
void main(){
state StatesArray[100];
}
如何为 (state---trasition---to---label) 赋值
我试过这个但失败了:
strcpy(StatesArray[i].TrasitionsArray[j]->to->label,"blahblah");