October 16th, 2011, 10:54 PM
Hello, im stuck writting this little program.
Im supposed to write the other statements necessary to read one integer from a file called currentsales and write twice its value into a file called projectedsales .
outdata << ????;
indata >> ???? * 2 >> endl;
October 17th, 2011, 01:30 AM
Re: if/of streams
Therefore, you need an input stream for the currentsales file and an output stream for the projectedsales file. Also, you need an integer variable to hold the input read, and with which you can compute the output to write.
Originally Posted by subzero06
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!