diff options
Diffstat (limited to '')
-rw-r--r-- | _posts/snippets/hello.cpp (renamed from _posts/snippets/snippet.cpp) | 2 | ||||
-rw-r--r-- | _posts/snippets/hello.hpp (renamed from _posts/snippets/snippet.hpp) | 0 | ||||
-rw-r--r-- | _posts/snippets/world.cpp | 7 | ||||
-rw-r--r-- | _posts/snippets/world.hpp | 3 |
4 files changed, 11 insertions, 1 deletions
diff --git a/_posts/snippets/snippet.cpp b/_posts/snippets/hello.cpp index bc4122e..2f96a60 100644 --- a/_posts/snippets/snippet.cpp +++ b/_posts/snippets/hello.cpp @@ -1,4 +1,4 @@ -#include "snippet.hpp" +#include "world.hpp" #include <iostream> diff --git a/_posts/snippets/snippet.hpp b/_posts/snippets/hello.hpp index 46556b6..46556b6 100644 --- a/_posts/snippets/snippet.hpp +++ b/_posts/snippets/hello.hpp diff --git a/_posts/snippets/world.cpp b/_posts/snippets/world.cpp new file mode 100644 index 0000000..54d3807 --- /dev/null +++ b/_posts/snippets/world.cpp @@ -0,0 +1,7 @@ +#include "world.hpp" + +#include <iostream> + +void hello_world() { + std::cout << "Hello world!\n"; +} diff --git a/_posts/snippets/world.hpp b/_posts/snippets/world.hpp new file mode 100644 index 0000000..32258b1 --- /dev/null +++ b/_posts/snippets/world.hpp @@ -0,0 +1,3 @@ +#pragma once + +void hello_world(); |