fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. //Celia Magdaleno 00-10-9614 http://i...content-available-to-author-only...e.com/8jttbZ
  6.  
  7. //declaration section
  8. class Employee
  9. {
  10.  
  11. public:
  12. Employee();
  13. Employee (string nam, double sal);
  14.  
  15. private:
  16. string name;
  17. double salary;
  18. };
  19.  
  20. //implementation section
  21.  
  22. Employee::Employee()
  23. {
  24.  
  25. salary=0.0;
  26. name= " ";
  27.  
  28. }
  29. Employee::Employee (string nam, double sal)
  30. {
  31. name=nam;
  32. salary=sal;
  33. }
  34.  
  35.  
  36. int main()
  37. {
  38. return 0;
  39. }
  40. // end of main section
  41.  
Success #stdin #stdout 0s 16048KB
stdin
Standard input is empty
stdout

Standard output is empty