用C++编写一个公司的工资管理系统

2025-01-02 20:59:20
推荐回答(3个)
回答1:

要免费?你这个要求就算卖给你也得3…5百,

回答2:

#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:"< cin>>r;
return r*r*PI;
}
};
class table:virtual public enter
{
public:
double a()
{
double in_h;
cout<<"h:"< cin>>in_h;
return in_h;
}
};
class roundtable:public circle,public table
{
public:
void a(char* c)
{
cout<<"color:"< cin>>c;
}
};
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<<"s="< cout<<"color=0x"< return 0;
}
是不是这意思?

回答3:

加我百度,我发给你