I am trying to calculate pay for 10 individuals, and have that data entered into a file. I'm trying to use fptr, can anyone give me some examples of how to do this?
you can use string delimiter to do this. Depending on what is in each string, of course if you provide some examples. If you have the choice of storing what is in each line, then using find_first_of or substring should be able to accomplish this.
It's the file pointer. I want to create a file that has employees information, and I want to have all of the information for the 20 employees saved to a file. Our instructor had given us an example in class. The example he gave is below. I'm trying to have my employee's pay calculated and sent to a file.