Very basic question. I have to write this program that reads data from a file, and from there calculates a customer's electrical usage, and through a good deal of logic, calculates how much this person is charged.
I have no problem with the arithmetic. It's just the stream i/o syntax. As a part of the guidelines, when we read from the customer textfile, we have to use the semi-colon as delimiters between the customer's ID and name.
Well, I could just be missing something, but how do I do that?
Thanks.
Edit: Am I an idiot? I think I am. This seems to be the prototype:
istream& ignore( int nCount, delimiter );
I have no problem with the arithmetic. It's just the stream i/o syntax. As a part of the guidelines, when we read from the customer textfile, we have to use the semi-colon as delimiters between the customer's ID and name.
Well, I could just be missing something, but how do I do that?
Thanks.
Edit: Am I an idiot? I think I am. This seems to be the prototype:
istream& ignore( int nCount, delimiter );
