HI.
I made a program for my homework it doesnt fulfill the task completely
but i think it's gonna do the job.What do you say will it do the job or not ????
Heres the task:Write a program square that calculates the squares of all numbers that are contained in a file of floating point numbers. The obtained new numbers form a new file. For example if the file contains the numbers 1, 2.5, 0.1, the numbers 1, 6.25 and 0.01 form the resulting file. The file names are specified on the command line:
Then if false cast "ch" to an integer through the stringstream and do the math. else do whatever. File Data is generally easier to work with if you read it in as a string.