如題,自己看
#include <iostream>
#include <cstdlib>
using namespace std;
class Printf{
private:
int integer;
float float_number;
double double_number;
public:
float getfloat(float float_number)
{
float_number=1.111111111f;
}
double getfloat(double double_number)
{
double_number=1.111111111;
}
int getinteger(int integer)
{
integer = 100;
}
void print(void)
{
cout<<"hello, world"<<endl;
}
};
int main()
{
Printf p1;
p1.print();
}