C++ gets confusing sometimes just like my next problem
I need to get a specific line in the file
Say File Precipitation has this inside
know what i need to do is display the file like this
now i need to mod it i think
so i was thinking this
but since i am not very good with mods i dunno how to do it...
so i need someones help
so for the first line its just
fin >> sMonth
just need help on getting 2nd, 3rd, 4th, 5th line please
I need to get a specific line in the file
Say File Precipitation has this inside
Code:
January 14.5 12.5 10.8 8.2 13.8 february 15.4 15.2 8.2 7.5 9.9
Code:
January February 14.5 15.4 12.5 15.2 10.8 8.2 8.2 7.5 13.8 9.9
so i was thinking this
Code:
int n; if (n % 4 ==0) fin >> Prec#1
so i need someones help
so for the first line its just
fin >> sMonth
just need help on getting 2nd, 3rd, 4th, 5th line please
Comment