td6
49
td6.md
49
td6.md
@@ -133,6 +133,9 @@ mvprintw(3, 5, "Nom : ");
|
|||||||
getstr(nom);
|
getstr(nom);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fichier tasks.json
|
fichier tasks.json
|
||||||
|
|
||||||
```json
|
```json
|
||||||
@@ -140,15 +143,17 @@ fichier tasks.json
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "build banque",
|
"label": "C/C++: gcc.exe build active file",
|
||||||
"type": "shell",
|
"type": "cppbuild",
|
||||||
"command": "gcc",
|
"command": "C:\\msys64\\ucrt64\\bin\\gcc.exe",
|
||||||
"args": [
|
"args": [
|
||||||
"banque.c",
|
"-fdiagnostics-color=always",
|
||||||
"-g", // inclut les symboles de debug
|
"-g",
|
||||||
"-lncurses", // lie la bibliothèque ncurses
|
"${file}",
|
||||||
|
"-lncurses",
|
||||||
|
"-DNCURSES_STATIC",
|
||||||
"-o",
|
"-o",
|
||||||
"banque"
|
"${fileDirname}\\${fileBasenameNoExtension}.exe"
|
||||||
],
|
],
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
@@ -160,33 +165,3 @@ fichier tasks.json
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
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