Advertisement
d3dx939dll

Aula44 - Estruturas V

Jan 23rd, 2021
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void){
  4.     struct horario{
  5.         int hora;
  6.         int minuto;
  7.         int segundo;
  8.     };
  9.     struct horario click[5] =
  10.     {{10, 20, 30}, {40, 50, 60}, {70, 80, 90}, {10, 20, 30}, {40, 50, 60}};
  11.     //intro kkk
  12.     printf("#Vetor\n");
  13.     int i;
  14.     for(int i = 0; i < 5; ++i){
  15.         printf("%i:%i:%i\n", click[i].hora, click[i].minuto, click[i].segundo);
  16.     }
  17.  
  18.     return 0;
  19. }
  20.  
  21. //Sobre:
  22.  
  23. //Aula: Vetores de Estruturas (#44)
  24. //Video: youtube.com/watch?v=r_4gWu3AYwE
  25.  
  26. //Data: 24/01/2021
  27. //Autor: d3dx939dll
  28. //Grupo: /r/Heikoa
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement