I'm a bit lost. I am trying to take an input file and use the data inside as a command as well as the data. So my input file would look like this:
B 127.2 Hi 183.2 Someone 23.8 Lost
Where "B" would call the specific function it is attached to and input the data next to it. I have tried finding information about this but am only finding information about argc/argv. I'm not sure if there is a specific way of doing this or if I should just take the input of the first character, put it in a switch or an else if statement, and then input the data left on the line. Thanks!