Au lycée nous utilisons un PROXY
Et il faut paramétrer correctement le navigateur et la machine hôte.
(école ou a la maison)
En informatique les dossiers et les fichiers permettent de "RANGER" vos travaux , prendre de bonnes habitudes.
sudo apt install tree
~/Works/tp0/
pour le tp0
first , premier ...two .. etc dans le tp0
Exemple :
work@bruno:~/snir1$ tree
.
└── Works
└── tp0
├── fichier.txt
├── first
│ ├── fichier.fichier
│ ├── first
│ └── first.c
├── three
│ ├── three
│ └── three.c
└── two
├── two
└── two.c
First.c
#include <stdlib.h> /* librairie standart C prototype et definitions de fonc
tions */
#include <stdio.h> /* library standart Input / Output */
int main (int argc , char **argv)
{
printf("Bonjour le monde ! \n");
printf(" 2 eme ligne \n");
printf(" 3 eme ligne \n ");
return EXIT_SUCCESS;
}
gcc first.c -o first
two.c
int main (int argc, char **argv)
{
int a,b,c;
a = 12;
b = 22;
c = a - b;
return c;
}
Utiliser gdb pour tester l'exemple two.c
gcc two.c -o two -g
https://www.rocq.inria.fr/secret/Anne.Canteaut/COURS_C/gdb.html
on attaque le TP 0