The database that i need to use is in alphabetical order by presidents names.The chronum is what number president the particular individual was.The pointer(next prez) filed links a president to his successor.
What exactly does the input file look like? According to your description the input file is ordered alphabetically. However your program assumes it is ordered chronologically.
@Bazzy I cant run the program and I dont know what to do after cout.
@pangalactic I am sorry.I need the output in alphabetical order the input is in chronological.