Commit aab02c98b9d553534abf97da195903c47e4cb864

Authored by Geoffrey PREUD'HOMME
1 parent 02310c8e

Demo plusieurs fonction

Showing 3 changed files with 7 additions and 1 deletions   Show diff stats
src/main.cpp
... ... @@ -3,6 +3,6 @@
3 3 #include "test.hpp"
4 4  
5 5 int main() {
6   - helloWorld();
  6 + helloWorld(4);
7 7 return 0;
8 8 }
... ...
src/test.cpp
... ... @@ -4,3 +4,8 @@ int helloWorld() {
4 4 std::cout << "Hello world!" << std::endl;
5 5 return 0;
6 6 }
  7 +
  8 +int helloWorld(int c) {
  9 + std::cout << "Hello " << c << " worlds!" << std::endl;
  10 + return 0;
  11 +}
... ...
src/test.hpp
1 1 int helloWorld();
  2 +int helloWorld(int c);
... ...