3.5.1 : Le main
Voici le main.cpp : On inclue notre header definit dans 3.4.1 :
1 |
#include "shadok.h"
|
On implémente le main qui ne fait qu'appeler notre fonction print_shadok noteÇa ne vole pas très haut mais c'est aussi pour l'exemple :
1 2 3 4 |
int main(int argc, char** argv){ print_shadok(); return 0; } |
Le fichier main.cpp complet :
1 2 3 4 5 6 7 8 9 10 11 12 |
/*************************************** Auteur : Pierre Aubert Mail : pierre.aubert@lapp.in2p3.fr Licence : CeCILL-C ****************************************/ #include "shadok.h" int main(int argc, char** argv){ print_shadok(); return 0; } |