Statistics
All Anime Stats Anime Stats
Days: 81.2
Mean Score:
6.98
- Watching14
- Completed474
- On-Hold20
- Dropped19
- Plan to Watch90
- Total Entries617
- Rewatched78
- Episodes4,576
All Manga Stats Manga Stats
Days: 55.9
Mean Score:
9.00
- Reading15
- Completed155
- On-Hold39
- Dropped17
- Plan to Read147
- Total Entries373
- Reread26
- Chapters8,024
- Volumes863
All Comments (99) Comments
how is the texas life treating ye?
How bout pals?
come back frand!
If not for me, then for Green!
while(!in_file.eof())
{
in_file >> string >> string >>
for (10 iterations, i++)
{ in_file >> num_array)
sum = num +sum
if (in_file.fail())
{
num=0 // this is just so that if there are not ten numbers, 0s are made instead (per instructer's rules)
}
}
average = sum/i
Function_to_output_data(data)
}
something like that... is this fundamentally wrong? I read the first line of text perfectly, but it just rereads it over and over. I've tried get() and peek() functions to test for the '\n' character after I retrieve my values but to no avail
I'm trying to loop input from a file with names followed by numbers
name name 10 10 10
name name 20 10 23
like that, but I cant figure out how to get the input stream to move on to the next line instead of just rereading the two name strings x.x
I need to get the names and the numbers, calculate an average, and then output the names plus the average to a new file. I have everything worked out except I can't get it to read the 2nd and 3rd and etc line of text, it just rereads the first.
let me know if you wanna help, thanks
ZZZZZ winter break be boring mang... save me.