#include <iostream>
using namespace std;
class pddate
{
public:
void printf(int a)
{
cout<<"printf int"<<a<<endl;
}
void printf(double a)
{
cout<<"printf double"<<a<<endl;
}
void printf(char *a)
{
cout<<"printf char"<<a<<endl;
}
};
int main(void)
{
pddate kk;
kk.printf(2);
kk.printf(2.22);
kk.printf("hello c++");
return 0;
using namespace std;
class pddate
{
public:
void printf(int a)
{
cout<<"printf int"<<a<<endl;
}
void printf(double a)
{
cout<<"printf double"<<a<<endl;
}
void printf(char *a)
{
cout<<"printf char"<<a<<endl;
}
};
int main(void)
{
pddate kk;
kk.printf(2);
kk.printf(2.22);
kk.printf("hello c++");
return 0;
}