Commit
02310c8e6e28b5713f032577575aa22b2ea5adc5
Demo inclusion
1
| /* Programme principal */ |
1
| /* Programme principal */ |
2
| |
2
| |
3
| -#include <iostream> |
3
| +#include "test.hpp" |
4
| |
4
| |
5
| int main() { |
5
| int main() { |
6
| - std::cout << "Hello world!" << std::endl; |
6
| + helloWorld(); |
7
| return 0; |
7
| return 0; |
8
| } |
8
| } |
| @@ -0,0 +1,6 @@ |
| @@ -0,0 +1,6 @@ |
| |
1
| +#include <iostream> |
| |
2
| + |
| |
3
| +int helloWorld() { |
| |
4
| + std::cout << "Hello world!" << std::endl; |
| |
5
| + return 0; |
| |
6
| +} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +int helloWorld(); |