From 02310c8e6e28b5713f032577575aa22b2ea5adc5 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Wed, 16 Mar 2016 12:51:20 +0100 Subject: [PATCH] Demo inclusion --- src/main.cpp | 4 ++-- src/test.cpp | 6 ++++++ src/test.hpp | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 src/test.cpp create mode 100644 src/test.hpp diff --git a/src/main.cpp b/src/main.cpp index 28c7232..f30b111 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,8 +1,8 @@ /* Programme principal */ -#include +#include "test.hpp" int main() { - std::cout << "Hello world!" << std::endl; + helloWorld(); return 0; } diff --git a/src/test.cpp b/src/test.cpp new file mode 100644 index 0000000..af89005 --- /dev/null +++ b/src/test.cpp @@ -0,0 +1,6 @@ +#include + +int helloWorld() { + std::cout << "Hello world!" << std::endl; + return 0; +} diff --git a/src/test.hpp b/src/test.hpp new file mode 100644 index 0000000..783f465 --- /dev/null +++ b/src/test.hpp @@ -0,0 +1 @@ +int helloWorld(); -- libgit2 0.21.2