MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / Master

Class Master

Lab_16/Source.cpp:256–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254};
255
256class Master : public Account, public Admin
257{
258public:
259 void create()
260 {
261 getdetails();
262 getpay();
263 getexpr();
264 }
265
266 void display()
267 {
268 showdetails();
269 showpay();
270 showexpr();
271 }
272
273 void update()
274 {
275 for (int i = 0; i < 1000; i++)
276 {
277 system("cls");
278 cout << "\t U P D A T E D E T A I L S\n";
279 cout << "=========================================\n";
280 cout << " Choose detail you want to update\n";
281 cout << " 1. NAME\n";
282 cout << " 2. CODE\n";
283 cout << " 3. EXPERIENCE\n";
284 cout << " 4. PAY\n";
285 cout << " 0. Back\n";
286 cout << " Your choice: ";
287
288 switch (_getch())
289 {
290 case 49:
291 cout << "\n\n Enter name: ";
292 cin >> name;
293 cout << " Successfully Updated!\n";
294 Sleep(0700);
295 Sleep(0700);
296 break;
297 case 50:
298 cout << "\n\n Enter code: ";
299 cin >> code;
300 cout << " Successfully Updated!\n";
301 Sleep(0700);
302 Sleep(0700);
303 break;
304 case 51:
305 cout << "\n\n Enter Expereince: ";
306 cin >> experience;
307 cout << " Successfully Updated!\n";
308 Sleep(0700);
309 Sleep(0700);
310 break;
311 case 52:
312 cout << "\n\n Enter pay: ";
313 cin >> pay;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected