samedi 29 novembre 2014

Overloaded function C++


Overloaded function C++

I don't understand How to create the overloaded function ?

like in this question:

Write a program that mimics a calculator. The program should take as input two integers and an arithmetic operation (+, -, *, or /) to be performed. It should then output the numbers, the operator, and the result. Create four overloaded function for each operator. Note: For division, if the denominator is zero, output an appropriate message. (Hint: use switch)





Aucun commentaire:

Enregistrer un commentaire