seergiomv

Ejercicio 24.4

Jan 4th, 2020
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.68 KB | None | 0 0
  1. #include <stdio.h>
  2. typedef struct fecha{
  3.     int anio;
  4.     int mes;
  5.     int dia;
  6. }fecha_nacimiento;
  7. typedef struct oficinista_{
  8.     char nombre[50];
  9.     fecha_nacimiento FechaNacimiento;
  10.     char nivel_estudios[50];
  11.     int num_tel;
  12. }oficinista_t;
  13. typedef struct conductor_{
  14.     char nombre[50];
  15.     fecha_nacimiento FechaNacimiento;
  16.     char nivel_estudios[50];
  17.     int num_matricula;
  18. }conductor_t;
  19. typedef struct tecnico_{
  20.     char nombre[50];
  21.     fecha_nacimiento FechaNacimiento;
  22.     char nivel_estudios[50];
  23.     int codigo;
  24. }tecnico_t;
  25. typedef struct tipo_trabajo{
  26.     oficinista_t oficinista;
  27.     conductor_t conductor;
  28.     tecnico_t tecnico;
  29. }tipo_trabajo_t;
Advertisement
Add Comment
Please, Sign In to add comment