| ~/.../smoking-stop/readline_integration $ gcc --version
|
| clang version 21.1.8
|
| Target: aarch64-unknown-linux-android30
|
| Thread model: posix
|
| InstalledDir: /data/data/com.termux/files/usr/bin
|
| ~/.../smoking-stop/readline_integration $ g++ -std=c++11 -o smoking_stop main.cpp readline_wrapper.cpp -lreadline -lncurses -lstdc++
|
| ~/.../smoking-stop/readline_integration $ ls
|
| CMakeLists.txt main.cpp readline_wrapper.hpp
|
| README.md readline_wrapper.cpp smoking_stop
|
| ~/.../smoking-stop/readline_integration $ ./smoking_stop
|
| ============================================================
|
| Bienvenue dans le programme d'arrêt du tabac !
|
| Tapez 'quit' pour quitter ou 'help' pour l'aide.
|
| ============================================================
|
|
|
| tabac> salut
|
| Commande inconnue. Tapez 'help' pour l'aide.
|
|
|
| tabac> help
|
|
|
| Commandes disponibles :
|
| quit - Quitter le programme
|
| help - Afficher cette aide
|
| stats - Afficher les statistiques
|
| add - Ajouter une entrée
|
| list - Lister les entrées
|
|
|
| tabac> add
|
| Entrez une note : ma note
|
| Note ajoutée : ma note
|
|
|
| tabac> list
|
|
|
| Liste des entrées :
|
| 1. Première note
|
| 2. Deuxième note
|
|
|
| tabac> 1
|
| Commande inconnue. Tapez 'help' pour l'aide.
|
|
|
| tabac> list 1
|
| Commande inconnue. Tapez 'help' pour l'aide.
|
|
|
| tabac>
|