Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. typedef int kk;
  5.  
  6.  
  7. typedef struct SuperHeroes{
  8. char nombre[50];
  9. int fuerza;
  10. }SuperHeroe;
  11.  
  12.  
  13. int main ()
  14. {
  15. SuperHeroe superman;
  16. SuperHeroe batman;
  17.  
  18. strcpy(superman.nombre,"Superman");
  19. superman.fuerza=1000;
  20.  
  21. strcpy(batman.nombre,"Batman");
  22. batman.fuerza = 10;
  23.  
  24. kk variable1;
  25.  
  26. variable1 = 5;
  27.  
  28. printf("Ejemplo %d\n",variable1);
  29.  
  30. getchar();
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement