fork download
  1. struct personalInfo
  2. {
  3. char name[50];
  4. char dateOfBirth[50];
  5. char address[150];
  6. char martialStatus[50];
  7. char nickname[50];
  8. char favoriteSaying[100];
  9.  
  10. };
  11.  
  12. struct dates{
  13. char lastPromotionDate[50];
  14. float startingStarDate;
  15. char starfleetGradDate[50];
  16.  
  17. };
  18.  
  19. struct otherEmployInfo{
  20. char rank[50];
  21. char ship[50];
  22. char starfleetID[50];
  23. float hourlyPay;
  24.  
  25. };
  26.  
  27. struct officer
  28. {
  29. struct personalInfo infoPersonal;
  30. struct dates infoDates;
  31. struct otherEmployInfo infoOtherEmploy;
  32. };
  33.  
  34. #include <stdio.h>
  35.  
  36. int main(void) {
  37. struct personalInfo person1 = { "Mr. James Tiberius Kirk", "March 22, 2233", "23 Falling Rock, Riverside, Iowa 52327-0021 Planet Earth"," Single"," Jim","Bones???"};
  38. return 0;
  39. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Standard output is empty