Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 4.35 KB | None | 0 0
  1.  
  2. File
  3. Edit
  4. Undo
  5. Ctrl+Z
  6. Redo
  7. Ctrl+Y Ctrl+Shift+Z
  8. Undo Selection
  9. Ctrl+U
  10. Beautify
  11. Ctrl+B
  12. Show Completions
  13. Ctrl+Space
  14. Toggle Comment
  15. Ctrl+/
  16. +Line
  17. Unindent
  18. Indent
  19. Duplicate Line
  20. Shift+Ctrl+D
  21. Swap Line Up
  22. Ctrl+Up
  23. Swap Line Down
  24. Ctrl+Down
  25. +Code Folding
  26. Fold
  27. Alt+Up
  28. Unfold
  29. Alt+Down
  30. Fold All
  31. Alt+Shift+Up
  32. Unfold All
  33. Alt+Shift+Down
  34. +Convert Case
  35. To Upper Case
  36. Ctrl+K ctrl+U
  37. To Lower Case
  38. Ctrl+K ctrl+L
  39. Find
  40. Find...
  41. Ctrl+F
  42. Find Next
  43. Find Previous
  44. Replace...
  45. Ctrl+R
  46. Replace Next
  47. Replace All
  48. Goto
  49. Goto Anything...
  50. Ctrl+P
  51. Goto Commands
  52. Ctrl+Shift+P
  53. Goto Line
  54. Ctrl+G
  55. View
  56. +Layout
  57. Single
  58. Alt+Shift+1
  59. Columns: 2
  60. Alt+Shift+2
  61. Columns: 3
  62. Alt+Shift+3
  63. Columns: 4
  64. Alt+Shift+4
  65. Rows: 2
  66. Alt+Shift+8
  67. Rows: 3
  68. Alt+Shift+9
  69. Grid
  70. Alt+Shift+5
  71. Split Vertical
  72. Split Horizontal
  73. Close Panel
  74. ✓File Explorer
  75. Alt+X
  76. Checkboxes
  77. Enable Double Click
  78. Increase Font Size
  79. Shift+Ctrl+Alt+Up
  80. Decrease Font Size
  81. Shift+Ctrl+Alt+Down
  82. Reset Font Size
  83. Indent With Tabs
  84. ✓Auto-detect Indentation
  85. Wrap Lines
  86. Alt+Q
  87. Errors or Warnings
  88. ✓Line Numbers
  89. ✓Fold Icons
  90. Autosave
  91. ✓MiniMap
  92. File Revisions
  93. ✓Bookmarks
  94. ✓Show Hidden Files
  95. Preferences
  96. +User
  97. General
  98. Key Bindings
  99. FileTypes
  100. Linting
  101. Snippets
  102. +Project
  103. General
  104. Key Bindings
  105. FileTypes
  106. Linting
  107. Snippets
  108. Open as JSON
  109. Help
  110. Changelog
  111. Documentation
  112. Create a Support Ticket
  113. Suggest a Feature
  114. Terms of Service
  115. Privacy Policy
  116. 1
  117. untitledConnectionsOpen Files
  118. SSL
  119. untitled
  120.  
  121. 1
  122. #include <stdio.h>
  123. 2
  124. #include <stdlib.h>
  125. 3
  126. #include <string.h>
  127. 4
  128. #define TAM 3
  129. 5
  130. 6
  131.     typedef struct
  132. 7
  133.     {
  134. 8
  135.        char nome[50];
  136. 9
  137.        int idade[4];
  138. 10
  139.        char sexo[3];
  140. 11
  141.        char cargo[30];
  142. 12
  143.        int salario[30];
  144. 13
  145.        int cod_setor[100];  
  146. 14
  147.        char cpf [12];  
  148. 15
  149.        Data nascimento;
  150. 16
  151.     } Funcionario;
  152. 17
  153.  typedef struct
  154. 18
  155.   {
  156. 19
  157.     int dia [4];
  158. 20
  159.     int ano [5];
  160. 21
  161.     char mes [20];    
  162. 22
  163.   } Data;
  164. 23
  165. int main()
  166. 24
  167. {
  168. 25
  169.   Funcionario funcionarios[TAM];
  170. 26
  171.   int i;
  172. 27
  173.  
  174. 28
  175.   for(i = 0; i < TAM; i++)
  176. 29
  177.   {
  178. 30
  179.     printf("Dados do funcionario:\n", i +1);
  180. 31
  181.     printf("Nome:\n");
  182. 32
  183.     scanf("%s", funcionarios[i].nome);
  184. 33
  185.     printf("Idade:\n");
  186. 34
  187.     scanf("%d", &funcionarios[i].idade);
  188. 35
  189.     printf("Sexo:\n");
  190. 36
  191.     scanf("%s", funcionarios[i].sexo);
  192. 37
  193.     printf("CPF:\n");
  194. 38
  195.     scanf("%s", funcionarios[i].cpf);
  196. 39
  197.     printf("Cargo:\n");
  198. 40
  199.     scanf("%s", funcionarios[i].cargo);
  200. 41
  201.     printf("Salario:\n");
  202. 42
  203.     scanf("%d", &funcionarios[i].salario);
  204. 43
  205.     printf("Data de nascimento:\n");
  206. 44
  207. 45
  208.  
  209. 46
  210.     s c a n f ( "%d %s %d " , &f u n c i o n a r i o s [ i ] . n a scimen to . dia , f u n c i o n a r i o s [ i ] .
  211. 47
  212.   n a scimen t o . mes , &f u n c i o n a r i o s [ i ] . n a scimen t o . ano ) ;
  213. 48
  214.   p r i n t f ( "\ tCodigo do setor : " ) ;
  215. 49
  216.  s c a n f ( "%d " , &f u n c i o n a r i o s [ i ] . c o d s e t o r ) ;
  217. 50
  218.    
  219. 51
  220.   }
  221. 52
  222. }
  223. 53
  224.  
  225. #include <stdio.h>
  226. #include <stdlib.h>
  227. #include <string.h>
  228. #define TAM 3
  229.     typedef struct
  230.     {
  231.        char nome[50];
  232.        int idade[4];
  233.        char sexo[3];
  234.        char cargo[30];
  235.        int salario[30];
  236.        int cod_setor[100];  
  237.        char cpf [12];  
  238.        Data nascimento;
  239.     } Funcionario;
  240.  typedef struct
  241.   {
  242.     int dia [4];
  243.     int ano [5];
  244.     char mes [20];    
  245.   } Data;
  246. int main()
  247. {
  248.   Funcionario funcionarios[TAM];
  249.   int i;
  250.  
  251.   for(i = 0; i < TAM; i++)
  252.   {
  253.     printf("Dados do funcionario:\n", i +1);
  254.     printf("Nome:\n");
  255.     scanf("%s", funcionarios[i].nome);
  256.     printf("Idade:\n");
  257.     scanf("%d", &funcionarios[i].idade);
  258.     printf("Sexo:\n");
  259.     scanf("%s", funcionarios[i].sexo);
  260.     printf("CPF:\n");
  261.     scanf("%s", funcionarios[i].cpf);
  262.     printf("Cargo:\n");
  263.     scanf("%s", funcionarios[i].cargo);
  264.     printf("Salario:\n");
  265.     scanf("%d", &funcionarios[i].salario);
  266.     printf("Data de nascimento:\n");
  267.  
  268.     s c a n f ( "%d %s %d " , &f u n c i o n a r i o s [ i ] . n a scimen to . dia , f u n c i o n a r i o s [ i ] .
  269.   n a scimen t o . mes , &f u n c i o n a r i o s [ i ] . n a scimen t o . ano ) ;
  270.   p r i n t f ( "\ tCodigo do setor : " ) ;
  271.  s c a n f ( "%d " , &f u n c i o n a r i o s [ i ] . c o d s e t o r ) ;
  272.    
  273.   }
  274. }
  275. untitled49:1
  276. Spaces: 2
  277. C
  278. Current file
  279. Revision
  280. Revisions
  281.  
  282. CLOSE
  283.  
  284. REFRESH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement