How do I write a C++ class program to convert temperatures from Celsius to Fahrenheit and vice versa?

How do I write a C++ class program to convert temperatures from Celsius to Fahrenheit and vice versa?

Use the Daniweb search engine. There have been scores of threads dealing with this that can help you get started.

I use to make functions, and converters for all my Chem. class stuff.

from F to C: temperature = (temperature - 32.0f) / 1.8f; from K to C: temperature = -273.15f + temperature; edit:
I figure you know basic algebra to go from C to F, F to K, etc.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.