Printf (" % d % d % s % s % s % s % 0.2 f ", STD [I] opus, STD [I] sort [30], STD [I] the book [20], STD [I] writer [20], STD [I]. Press [30], STD [I] number, STD [I] price);
Then, according to the expression must contain structure or joint type, wrong? This statement,
o, for help
CodePudding user response:
What is the source code?
Stick it?
CodePudding user response:
Your STD structure is how the statement? Contains?
STD sort [30], [I] the book [20], STD [I] writer [20], STD [I]. Press [30], is this a few array?
If is similar to
Char name [20], then the printf directly STD [I]. Name to go, do not need to the back of the [20]
CodePudding user response:
Struct paper
{
Int opus.
Char sort [30].
Char book [20].
Char writer [20].
Char press [30].
Int number;
Float price;
}; STD [15].
Structure is like this,
CodePudding user response:
Is to do a simple books management system management system, then this is for all information output,
CodePudding user response:
refer to the second floor CHXCHXKKK response: your STD structure is how the statement? Contains? STD sort [30], [I] the book [20], STD [I] writer [20], STD [I]. Press [30], is this a few array? If is similar to Char name [20], then the printf directly STD [I]. Name, do not need to the back of the [20] Struct paper { Int opus. Char sort [30]. Char book [20]. Char writer [20]. Char press [30]. Int number; Float price; }; STD [15]. Structure is like this CodePudding user response:
Printf (" % d % d % s % s % s % s % 0.2 f ", STD [I] opus, STD [I] sort [30], STD [I] the book [20], STD [I] writer [20], STD [I]. Press [30], STD [I] number, STD [I] price); Modified to: Printf (" % d % d % s % s % s % s % 0.2 f ", STD [I] opus, STD [I] sort, STD [I]. Book, STD [I] writer, STD [I] press, STD [I] number, STD [I] price); CodePudding user response:
refer to 6th floor CHXCHXKKK response: printf (" % d % d % s % s % s % s % 0.2 f ", STD [I] opus, STD [I] sort [30], STD [I] the book [20], STD [I] writer [20], STD [I]. Press [30], STD [I] number, STD [I] price); Modified to: Printf (" % d % d % s % s % s % s % 0.2 f ", STD [I] opus, STD [I] sort, STD [I]. Book, STD [I] writer, STD [I] press, STD [I] number, STD [I] price); Is still the same, showing expression must contain or joint type structure, and this is just a representative of all statements, as long as I add the STD, is also like this, CodePudding user response:
The reference 1 floor? Victor.?? Response: what is the source? Stick it? Nt XSQB () { int i; Printf (" \ n number classification title author press quantity the unit price "); for (i=0; i Printf (" % d % d % s % s % s % s % 0.2 f ", STD [I] opus, STD [I] sort [30], STD [I] the book [20], STD [I] writer [20], STD [I]. Press [30], STD [I] number, STD [I] price); } This function is complete like this, CodePudding user response:
refer to the eighth floor qq_48935908 response: Quote: refer to 1st floor? Victor.?? Response: what is the source? Stick it? Nt XSQB () { int i; Printf (" \ n number classification title author press quantity the unit price "); for (i=0; i Printf (" % d % d % s % s % s % s % 0.2 f ", STD [I] opus, STD [I] sort [30], STD [I] the book [20], STD [I] writer [20], STD [I]. Press [30], STD [I] number, STD [I] price); } This function is this appearance, complete Struct paper { Int opus. Char sort [30]. Char book [20]. Char writer [20]. Char press [30]. Int number; Float price; } STD [15].//STD [15] in front of the semicolon remove Int main () { Int I, Diaoyon; Printf (" \ n number classification title author press quantity the unit price "); for (i=0; i Printf (" % d % d % s % s % s % s % 0.2 f ", STD [I] opus, STD [I] sort [30], STD [I] the book [20], STD [I] writer [20], STD [I]. Press [30], STD [I] number, STD [I] price); } CodePudding user response:
The references 9 floor? Victor.?? Response: Quote: refer to the eighth floor qq_48935908 response: The Quote: 1 reference building? Victor.?? Response: what is the source? Stick it? Nt XSQB () { int i; Printf (" \ n number classification title author press quantity the unit price "); for (i=0; i Printf (" % d % d % s % s % s % s % 0.2 f ", STD [I] opus, STD [I] sort [30], STD [I] the book [20], STD [I] writer [20], STD [I]. Press [30], STD [I] number, STD [I] price); } This function is this appearance, complete Struct paper { Int opus. Char sort [30]. Char book [20]. Char writer [20]. Char press [30]. Int number; Float price; } STD [15].//STD [15] in front of the semicolon remove Int main () nullnullnullnullnullnullnull