From aab02c98b9d553534abf97da195903c47e4cb864 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Wed, 16 Mar 2016 13:04:35 +0100 Subject: [PATCH] Demo plusieurs fonction --- src/main.cpp | 2 +- src/test.cpp | 5 +++++ src/test.hpp | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f30b111..a403032 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,6 +3,6 @@ #include "test.hpp" int main() { - helloWorld(); + helloWorld(4); return 0; } diff --git a/src/test.cpp b/src/test.cpp index af89005..2a00baf 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -4,3 +4,8 @@ int helloWorld() { std::cout << "Hello world!" << std::endl; return 0; } + +int helloWorld(int c) { + std::cout << "Hello " << c << " worlds!" << std::endl; + return 0; +} diff --git a/src/test.hpp b/src/test.hpp index 783f465..6e7c281 100644 --- a/src/test.hpp +++ b/src/test.hpp @@ -1 +1,2 @@ int helloWorld(); +int helloWorld(int c); -- libgit2 0.21.2