Ok so I am working on a hash map but I ran into trouble with reading in the input. I need to be able to read in the input from a file if specified if not from the console. Thats not a problem but when it comes to reading it in from the console I am stuck.
the format for the information is as follows:
A <INT> <CHAR> <STRING> <INT> <DOUBLE>
B <INT> <CHAR> <INT>
C <INT> <CHAR> <INT> <STIRNG>
ok so I can read in 1 line perfectly fine and I can use a switch statement to detect if its a, b or c and then adjust my scanf to fit the situation.
The problem I am having is the multiple lines, I have no idea how to keep reading in the lines. I do not know if my input will be 2 lines long or 2000 lines long.