... | @@ -57,7 +57,7 @@ Exercices |
... | @@ -57,7 +57,7 @@ Exercices |
|
=====
|
|
=====
|
|
|
|
|
|
## 1) Compiler un programme
|
|
## 1) Compiler un programme
|
|
Vous pouvez trouver un "hello world" dans le fichier [helloworld.cpp](Chapter_1/helloworld.cpp).
|
|
Vous pouvez trouver un "hello world" dans le fichier [helloworld.cpp](https://cp3-git.irmp.ucl.ac.be/mdelcourt/LPHY1271/blob/master/Chapter_1/helloworld.cpp).
|
|
Copiez son contenu dans un fichier, compilez-le à l'aide de g++ :
|
|
Copiez son contenu dans un fichier, compilez-le à l'aide de g++ :
|
|
``` bash
|
|
``` bash
|
|
g++ MONFICHIER.cpp -o MON_EXECUTABLE_DE_SORTIE.o
|
|
g++ MONFICHIER.cpp -o MON_EXECUTABLE_DE_SORTIE.o
|
... | | ... | |