Removed

Removed.
Last edited on
imbritty wrote:
However, the problem is... I do not understand what she means by "and output to temp4US.out and temp4UK.out".

The US uses Fahrenheit so when the user selects from the menu to convert Celsius to Fahrenheit you need to create a file named temp4US.out and store the results there.

The UK uses Celsius so when the user selects from the menu to convert Fahrenheit to Celsius you need to create a file named temp4UK.out and store the results there.


imbritty wrote:
We were provided with no such files and I am confused by what my professor wants.

You need to create the files


imbritty wrote:
I don't know how to use files in a program
http://www.cplusplus.com/doc/tutorial/files/
Last edited on
Removed.
Last edited on
Removed.
Last edited on
imbritty wrote:
But how in the world do I get those numbers in those files into my program to be used for calculations?
Yanson wrote:
http://www.cplusplus.com/doc/tutorial/files/
Removed.
Last edited on
Ifstream is a stream. Work with it like you would with std::cin. Tutorial only shows you how to use file stream specific functions, because it assumes that you are familiar with plain streams.

Another example of how you would work with ifstream: http://www.cplusplus.com/reference/istream/istream/operator%3E%3E/#example
Last edited on
Topic archived. No new replies allowed.