Guest User

Untitled

a guest
May 25th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. struct test
  6. {
  7.     char last_name;
  8.     bool working;
  9.     int age;
  10. };
  11. int main()
  12. {
  13.     test employee1;
  14.     employee1.last_name = a;
  15.     employee1.working = true;
  16.     employee1.age = 17;
  17.  
  18.     test employee2;
  19.     employee2.last_name = c;
  20.     employee2.working = false;
  21.     employee2.age = 99;
  22.  
  23.     test employee3;
  24.  
  25.     cout<<"What is the first letter of this employee's last name?";
  26.     cin>> employee3.last_name;
  27.  
  28.     cout<<"Is this employee on the workforce currently?";
  29.     cin>>employee3.working;
  30. }
Add Comment
Please, Sign In to add comment