The file named my_reals.dat contains an unknown number of real numbers separated with whitespace. Writthe complete program to copy the positive reals to a file named my_pos.dat, and copy the negative reals to a file called my_neg.dat. Occurrences of zero should not be written to either file, but should be counted and the total number of zeros should be printed out at the end of the program.
I'd be very thankful if you could help me out by giving me a working example of how to do this one...thanks. I only really need the logic that takes the numbers, seperates them, and puts them into seperate files.
I'd be very thankful if you could help me out by giving me a working example of how to do this one...thanks. I only really need the logic that takes the numbers, seperates them, and puts them into seperate files.