Skip to content

Instantly share code, notes, and snippets.

@alanmugiwara
Created October 14, 2024 20:24
Show Gist options
  • Select an option

  • Save alanmugiwara/497410408e11f79727b89b00099f1402 to your computer and use it in GitHub Desktop.

Select an option

Save alanmugiwara/497410408e11f79727b89b00099f1402 to your computer and use it in GitHub Desktop.
Tarefa "user manager" em C.
// O QUE SERÁ UTILIZADO
// 1. Setlocale
// 2. função e chamada de função
// 3. função void
// 4. switch case
// PROJETO
// 1. Possuir Menu de opções
// 2. Cadastrar novo usuário
// 3. Alterar senha do usuário
// 4. Realizar o login
// 5. Exclusão de usuário
// 6. Opção de saída
// 7. Necessário salvar os usuários em TXT.
// COMO USAR O GGC NO GNU/LINUX PRA CONSEGUIR COMPILAR EM C?
// COPIAR O CÓDIGO DAS LINHAS 23 ATÉ 41 E SALVAR COMO "tasks.json"
// MAIS DETALHES E O LOCAL ONDE O ARQUIVO DEVE SER SALVO NO FIM DO CÓDIGO.
{
"version": "2.0.0",
"tasks": [
{
"label": "build and run",
"type": "shell",
"command": "bash",
"args": [
"-c",
"gcc \"${file}\" -o \"${fileDirname}/${fileBasenameNoExtension}\" && \"${fileDirname}/${fileBasenameNoExtension}\""
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$gcc"]
}
]
}
// INSTALAR O GCC
// apt update
// sudo apt install build-essential
// LOCAL PARA SALVAR O ARQUIVO
// ~/.config/Code/User/tasks.json
// Atalho para compilar ctrl+=shift+B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment