This is a simple problem, but I just can't figure it out. In the following code, I need to have the output of n in quotes. IE. The output of the void quote (int n) function should read:
Integer: "5"
and not Integer: 5
Here is the code:
#include <iostream.h>
void iquote(int n)
{
cout << "Integer: " << n << endl;
}
void iquote (double n)
{
cout << "Double: " << n << endl;
}
void iquote (char n)
{
cout << "Character: " << n << endl;
}
void main ()
{
iquote(5);
iquote (6.3);
iquote ('C');
}
Thanks in advance!!