#include <iostream>
class Data {
public:
void print(int value)
{
std::cout << "int value:" << value << std::endl;
}
void print(double value)
{
std::cout << "double value:" << value << std::endl;
}
void print(char c[])
{
std::cout << "char value:" << c << std::endl;
}
};
int main()
{
Data d_;
int a = 9;
double b = 29.543;
char c[6] = "haha";
d_.print(a);//int
d_.print(b);//double
d_.print(c);//char
system("pause");
return 0;
}