Ok I figured out the problem. The cursor wasn't at the start of the file when being opened, so I had to place it there to work properly.
I have one more question though... I'm having trouble with...
Type: Posts; User: pengu
Ok I figured out the problem. The cursor wasn't at the start of the file when being opened, so I had to place it there to work properly.
I have one more question though... I'm having trouble with...
Yeah, I know my code is sloppy etc. I've just added crap in there so i can get it working and then i'll clean it up.
count is initialised at the start as "int count = 0;"
I've isolated the...
Hi, I'm having trouble with comparing a character received from a file. I know, newbie problem. Anyway, I have this code:
while(tf) {
if (a_file.get() == '"') {
count++; cout <<"got...