Advertisement
d3dx939dll

Aula43 - Estruturas IV

Jan 22nd, 2021
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void){
  4.     struct horario{
  5.         int horas;
  6.         int minutos;
  7.         int segundos;
  8.     } agora = {10, 20, 30};
  9.     //#2 metodo
  10.     //struct horario agora = {10,20,30};
  11.     //#3 metodo
  12.     //struct horario agora = {.segundos = 10, .minutos = 20};
  13.     printf("%i:%i:%i\n", agora.horas, agora.minutos, agora.segundos);
  14.   return 0;
  15. }
  16.  
  17.  
  18. //SOBRE:
  19.  
  20. //Aula: Inicializando Estruturas
  21. //Video: youtube.com/watch?v=oZo3Dxs3tcg
  22.  
  23. //Data: 23/01/2021
  24. //Grupo: /r/Heikoa
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement