Basically, I have an assignment and have NO clue. Can someone please help? Here is the assignment along with the link for the bubble sort:
In this assignment you are to implement an array of 10 structs, each of which has two members:
Name : which contains strings of arbitrary lengths.
ID : an integer
You should read them in from standard input. The format is one line of name , then another line of id. It continues until the end of file.
Then you are to use bubble-sort to sort the array according to the ID. The output should be id followed by the name, one line per pair. So in total there should be 10 lines.
If anyone can help, I would greatly appreciate it. Thank you.
-Frustrated with Structure