I am working on a client/server program using sockets and I am trying to parse the input file. I have a struct to store the Majors, the early career pay, and the mid-career, respectively. The client program asks the user to input the name of the major and the server program returns both salaries.
The issue with the input file is this:
Geophysics 54100 122200
Cognitive Science 54000 121900
Electrical Power Engineering 68600 119100
They are all separated as Major[TAB]Pay[Tab]Pay, and the majors have spaces in them. I want to store each of them in the struct.
Any solution to this?