Float and int variabels in the same function?

Hi,
I currently workning on a school assingment where we shall create a function that can convert both int and float numbers (celsius to fahrenheit). But I can't figure out how to create a function that can apply on both variabel types?

cheers!
You can use function overloading.

Look about halfway down this page: http://www.cplusplus.com/doc/tutorial/functions2/
Last edited on
Thanx, that solved it =)
Topic archived. No new replies allowed.