1. The use of c + + string class, 5 string input by means of circulation, then through the way of circulation will be displayed after five string in reverse order, for example, reverse the five before the string is: Germany Japan America Britain France after according to reverse the order of the output string is France Britain America Japan Germany 2. Set up an array of objects, through the loop, 5 students use keyboard input data (student number, the result); With a pointer to the first element array, the output 1,3,5 student data, requirements: students of class with the constructor, 3. Set up an array of objects, through the loop, 5 students use keyboard input data (student number, the result), set up a function Max with a pointer to the object as a function parameter, in Max function to find five students scored the highest, and output the student id, requirements: students in the class with the constructor,
CodePudding user response:
This is not too difficult, suggest to write the first, it won't ask again