SHOW:
|
|
- or go back to the newest paste.
1 | #include <string> | |
2 | - | #include "invoice.h" |
2 | + | |
3 | using namespace std; | |
4 | class employee1 | |
5 | { | |
6 | - | int main() |
6 | + | public: |
7 | employee1 (string firstname , string lastname , int salary) | |
8 | - | invoice i2("Damn1", "Damn Things", 999, 9999); |
8 | + | { |
9 | - | cout << "Part Number: " << i2.getPartNumber() << endl; |
9 | + | setfirstname(string name); |
10 | - | cout << "Part Description: " << i2.getPartDescription() << endl; |
10 | + | setlastname(string name); |
11 | - | cout << "Quantity: " << i2.getQuantity() << endl; |
11 | + | if (salary<0) |
12 | - | cout << "price: " << i2.getPrice() << endl; |
12 | + | salary=0; |
13 | - | i2.setPartDescription("Damn Damn Things"); |
13 | + | } |
14 | - | cout << "Part Description: " << i2.getPartDescription() << endl; |
14 | + | set salary(salary); |
15 | - | return 0; |
15 | + | |
16 | private: | |
17 | { | |
18 | string firstname x; | |
19 | string lastname y; | |
20 | int salary z; | |
21 | double getd; | |
22 | } | |
23 | } |