settings.json
60
td6.md
60
td6.md
@@ -84,6 +84,8 @@ Date Type Montant
|
|||||||
Solde actuel : 150.00 €
|
Solde actuel : 150.00 €
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Compilation
|
||||||
|
|
||||||
## NCurses
|
## NCurses
|
||||||
|
|
||||||
|
|
||||||
@@ -130,3 +132,61 @@ char nom[30];
|
|||||||
mvprintw(3, 5, "Nom : ");
|
mvprintw(3, 5, "Nom : ");
|
||||||
getstr(nom);
|
getstr(nom);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
fichier tasks.json
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "build banque",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "gcc",
|
||||||
|
"args": [
|
||||||
|
"banque.c",
|
||||||
|
"-g", // inclut les symboles de debug
|
||||||
|
"-lncurses", // lie la bibliothèque ncurses
|
||||||
|
"-o",
|
||||||
|
"banque"
|
||||||
|
],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"problemMatcher": ["$gcc"],
|
||||||
|
"detail": "Compilation du programme banque.c avec ncurses"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
fichier settings.json
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Debug Banque (ncurses)",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceFolder}/banque",
|
||||||
|
"args": [],
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"environment": [],
|
||||||
|
"externalConsole": true,
|
||||||
|
"MIMode": "gdb",
|
||||||
|
"miDebuggerPath": "/usr/bin/gdb",
|
||||||
|
"preLaunchTask": "build banque",
|
||||||
|
"setupCommands": [
|
||||||
|
{
|
||||||
|
"description": "Activer l'impression pretty",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user