Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File
- Edit
- Undo
- Ctrl+Z
- Redo
- Ctrl+Y Ctrl+Shift+Z
- Undo Selection
- Ctrl+U
- Beautify
- Ctrl+B
- Show Completions
- Ctrl+Space
- Toggle Comment
- Ctrl+/
- +Line
- Unindent
- Indent
- Duplicate Line
- Shift+Ctrl+D
- Swap Line Up
- Ctrl+Up
- Swap Line Down
- Ctrl+Down
- +Code Folding
- Fold
- Alt+Up
- Unfold
- Alt+Down
- Fold All
- Alt+Shift+Up
- Unfold All
- Alt+Shift+Down
- +Convert Case
- To Upper Case
- Ctrl+K ctrl+U
- To Lower Case
- Ctrl+K ctrl+L
- Find
- Find...
- Ctrl+F
- Find Next
- Find Previous
- Replace...
- Ctrl+R
- Replace Next
- Replace All
- Goto
- Goto Anything...
- Ctrl+P
- Goto Commands
- Ctrl+Shift+P
- Goto Line
- Ctrl+G
- View
- +Layout
- Single
- Alt+Shift+1
- Columns: 2
- Alt+Shift+2
- Columns: 3
- Alt+Shift+3
- Columns: 4
- Alt+Shift+4
- Rows: 2
- Alt+Shift+8
- Rows: 3
- Alt+Shift+9
- Grid
- Alt+Shift+5
- Split Vertical
- Split Horizontal
- Close Panel
- ✓File Explorer
- Alt+X
- Checkboxes
- Enable Double Click
- Increase Font Size
- Shift+Ctrl+Alt+Up
- Decrease Font Size
- Shift+Ctrl+Alt+Down
- Reset Font Size
- Indent With Tabs
- ✓Auto-detect Indentation
- Wrap Lines
- Alt+Q
- Errors or Warnings
- ✓Line Numbers
- ✓Fold Icons
- Autosave
- ✓MiniMap
- File Revisions
- ✓Bookmarks
- ✓Show Hidden Files
- Preferences
- +User
- General
- Key Bindings
- FileTypes
- Linting
- Snippets
- +Project
- General
- Key Bindings
- FileTypes
- Linting
- Snippets
- Open as JSON
- Help
- Changelog
- Documentation
- Create a Support Ticket
- Suggest a Feature
- Terms of Service
- Privacy Policy
- 1
- untitledConnectionsOpen Files
- SSL
- untitled
- 1
- #include <stdio.h>
- 2
- #include <stdlib.h>
- 3
- #include <string.h>
- 4
- #define TAM 3
- 5
-
- 6
- typedef struct
- 7
- {
- 8
- char nome[50];
- 9
- int idade[4];
- 10
- char sexo[3];
- 11
- char cargo[30];
- 12
- int salario[30];
- 13
- int cod_setor[100];
- 14
- char cpf [12];
- 15
- Data nascimento;
- 16
- } Funcionario;
- 17
- typedef struct
- 18
- {
- 19
- int dia [4];
- 20
- int ano [5];
- 21
- char mes [20];
- 22
- } Data;
- 23
- int main()
- 24
- {
- 25
- Funcionario funcionarios[TAM];
- 26
- int i;
- 27
- 28
- for(i = 0; i < TAM; i++)
- 29
- {
- 30
- printf("Dados do funcionario:\n", i +1);
- 31
- printf("Nome:\n");
- 32
- scanf("%s", funcionarios[i].nome);
- 33
- printf("Idade:\n");
- 34
- scanf("%d", &funcionarios[i].idade);
- 35
- printf("Sexo:\n");
- 36
- scanf("%s", funcionarios[i].sexo);
- 37
- printf("CPF:\n");
- 38
- scanf("%s", funcionarios[i].cpf);
- 39
- printf("Cargo:\n");
- 40
- scanf("%s", funcionarios[i].cargo);
- 41
- printf("Salario:\n");
- 42
- scanf("%d", &funcionarios[i].salario);
- 43
- printf("Data de nascimento:\n");
- 44
-
- 45
- 46
- 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 ] .
- 47
- 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 ) ;
- 48
- p r i n t f ( "\ tCodigo do setor : " ) ;
- 49
- 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 ) ;
- 50
- 51
- }
- 52
- }
- 53
-
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #define TAM 3
-
- typedef struct
- {
- char nome[50];
- int idade[4];
- char sexo[3];
- char cargo[30];
- int salario[30];
- int cod_setor[100];
- char cpf [12];
- Data nascimento;
- } Funcionario;
- typedef struct
- {
- int dia [4];
- int ano [5];
- char mes [20];
- } Data;
- int main()
- {
- Funcionario funcionarios[TAM];
- int i;
- for(i = 0; i < TAM; i++)
- {
- printf("Dados do funcionario:\n", i +1);
- printf("Nome:\n");
- scanf("%s", funcionarios[i].nome);
- printf("Idade:\n");
- scanf("%d", &funcionarios[i].idade);
- printf("Sexo:\n");
- scanf("%s", funcionarios[i].sexo);
- printf("CPF:\n");
- scanf("%s", funcionarios[i].cpf);
- printf("Cargo:\n");
- scanf("%s", funcionarios[i].cargo);
- printf("Salario:\n");
- scanf("%d", &funcionarios[i].salario);
- printf("Data de nascimento:\n");
-
- 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 ] .
- 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 ) ;
- p r i n t f ( "\ tCodigo do setor : " ) ;
- 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 ) ;
- }
- }
-
- untitled49:1
- Spaces: 2
- C
- Current file
- Revision
- Revisions
- CLOSE
- REFRESH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement