Task

Hi! I have some problem to solve to this task
Task 10. Unfoturnetely, when one of the assistant hast been setting up marks for midterm, WIFI connection was
cut off. After reconnection, he realized that list of all students and theirs marks were mixed. He knows
that students were in alphabetical order and marks in ascending order. Help assistant to resotre all marks.
Input
The first line contains single integer N - amount of students. In the next N lines will be given pairs of
student name(string) and mark(int).
Output
Print required list. Each student should be in own line
@Gulziya - what part of this are you having trouble with? Do you know how to read data from a file? Know about containers (eg std::vector)? If you had to do this task by hand, how would you do it? If you had to explain to someone else how to do this, what specific detailed instructions would you provide? First design the program, then code from the design and then test/debug. When coding, code in small chunks and compile and test frequently.
Topic archived. No new replies allowed.