要免费?你这个要求就算卖给你也得3…5百,
#include "stdafx.h"
#include "iostream.h"
#define PI 3.14
class enter
{
public:
void a()
{
cout<<"welcome!"<
};
class circle:virtual public enter
{
public:
double a()
{
double r;
cout<<"r:"<
return r*r*PI;
}
};
class table:virtual public enter
{
public:
double a()
{
double in_h;
cout<<"h:"<
return in_h;
}
};
class roundtable:public circle,public table
{
public:
void a(char* c)
{
cout<<"color:"<
}
};
int main(int argc, char* argv[])
{
roundtable rdtb;
char c[6]="";
rdtb.enter::a();
double h=rdtb.circle::a();
double s=rdtb.table::a();
rdtb.roundtable::a(c);
cout<<"h="< cout<<"color=0x"<
}
是不是这意思?
加我百度,我发给你