{char "train" [20]. Char originst [20]. Char terminal [20]. Float fare;
};
Struct piao a, [20].
Int I=0, num=0;
Float c=0;
Char b [20];
for(; A [I] fare> 0; I++)
{cin> A [I] train> A [I] originst> [I] a terminal; Cin> [I] a fare;
}
CodePudding user response:
Initialization regardless of you are so right, this structure is not initialized, don't know the value of your fare memory is what, can not be directly used as a condition, which can cause could not enter the cycle is over, is also likely to cross a line and haven't stopped,