81 82 83 84. C++ student homework

1. Application questions

1.1 Please customize multiple functions (global functions) with the same interface function name, and pass in the corresponding parameters (logic operation customization)

1.2 Define a unified namespace for these interface functions, and call

2. Application questions

2.1 Add a standard library member variable of string type to the book class

2.2 Define a constructor for the book, which requires only one parameter of string type. In the constructor, the string is split and analyzed to get the various attributes of the book and assigned to each member variable of the book.

PS:

Example: Similar input string: "How C++ Assistance Works-001-Di University Student-[Di University Publishing House]-E-book"

Please customize the number and meaning of attributes, you can delete or add some attributes to the string

Parses string properties by itself and converts data types by itself

keep

Guess you like

Origin blog.csdn.net/F_Heart/article/details/123774861