-
Okay, I'll give you a simple one.
-
Ask the great god to help write a program in C++! Be complete. Hurry, hurry!
Design an employee class, and then derive the manager, technician, and salesperson classes.
The three classes have the following properties and methods:
The manager category has name, number, fixed salary, current salary, calculated monthly salary, and display information.
The base number of personnel is required to be 1000, and the order of each personnel information number is added by 1.
The monthly salary is calculated as a fixed monthly salary of 8,000 yuan for managers, 100 yuan per hour for technical personnel, and 4% of the sales for sales personnel.
#include
#include
using namespace std;
class employee
void set_salary(double f)void display()
void calculate()
void show()
The technician has the name, number, hours worked, amount of wages per hour, salary for the current month, calculation of monthly salary, and display information.
class technolyger: public employeevoid calculate()
void show()
void calculate()
void show()
cout<<"Number tName tSalary of the month tSales tPosition";
display();
cout<
-
Employee class - derivation.
Employee class (name, number, display information, current month's salary, calculated monthly salary) manager class (fixed salary 8000).
Technician (working hours, 100 wages per hour) Salesperson (sales commission.
-
First of all, we must define the base class people in the definition of the class of students as follows:
public class people
private string _id;
public string id
getset
private string _name;
public string name
getset
private string _gender;
public string gender
getset
private string _age;
public int gge
getset
public person(string name,int age,string gender) constructor.
name=name;
age=name;
gerder=gender;
public void display()"It's sex, it's age",this._name,this._gender,this._age);
public class student: peopleThe rest is relatively simple, think about potato pants yourself.
-
The instructions are so clear, write it yourself, it's a matter of time.
-
create proc pp
a int,@b nvarchar(50)asdeclare @id int
select @id=b from Table 2 where 2=@aupdate Table 1
set 2=@id
where 3=@a and other tassel trousers = @b Zhizhi Lao Xing Chuan Ginseng.
exec pp '1','Opened people to AAA'
Make a bank account management system.
How to simply spend the second half of your life alone and live in a retirement community with like-minded friends. >>>More
The best way to forget a person is to put it in the deepest part of your heart, People have memories, how can you easily forget an unforgettable person, unless that person is not important, time will make you forget, Every day is full of work, so that you don't have time to be idle, you won't have the opportunity to think about him,
I think that although you are very considerate of the company in this company, you think that the boss recognizes you very much, but the boss may recognize your loyalty and diligence, but he may not approve of your way of doing things, for example, the employee's welfare is decided by the boss, why should you be a small person to deduct yourself? Do you still treat your boss as your boss when you do this? An employee above the boss, which boss likes it, and which professional manager likes it? >>>More
Potato stew is a good choice. Here's how:1. Wash the rice and pour it into the casserole, add peanut oil and soy sauce and mix well. >>>More