As shown in figure, now I have three books in the structure array, now want to add new books into, change how to do?
CodePudding user response:
No points is too painful, VIP is too expensive, which have great god help me two files, only need 4 points, sent him a red envelopeCodePudding user response:
In addition, want to use function to achieve, canCodePudding user response:
Can I download the what, oh, integral can not buy?CodePudding user response:
You define nowbook [] array size is 3, how to add?1, direct start defining nowbook [100]=... , behind nowbook [0]={}, nowbook. [1]={}, and can be added to the 100
2, using the vector directly, had a new book is push_back
CodePudding user response:
You this array defines the length of the three, can't add, suggested that the brackets [] with a greater than 3 Numbers, such as 10. So you can add new members to enter