From e726014585409acacef2e79a8d83a55a9e47ecb6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 31 May 2021 16:10:50 +0300 Subject: add more examples, update README --- _posts/snippets/hello.cpp | 7 +++++++ _posts/snippets/hello.hpp | 3 +++ _posts/snippets/snippet.cpp | 7 ------- _posts/snippets/snippet.hpp | 3 --- _posts/snippets/world.cpp | 7 +++++++ _posts/snippets/world.hpp | 3 +++ 6 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 _posts/snippets/hello.cpp create mode 100644 _posts/snippets/hello.hpp delete mode 100644 _posts/snippets/snippet.cpp delete mode 100644 _posts/snippets/snippet.hpp create mode 100644 _posts/snippets/world.cpp create mode 100644 _posts/snippets/world.hpp (limited to '_posts/snippets') diff --git a/_posts/snippets/hello.cpp b/_posts/snippets/hello.cpp new file mode 100644 index 0000000..2f96a60 --- /dev/null +++ b/_posts/snippets/hello.cpp @@ -0,0 +1,7 @@ +#include "world.hpp" + +#include + +void hello_snippets() { + std::cout << "Hello snippets!\n"; +} diff --git a/_posts/snippets/hello.hpp b/_posts/snippets/hello.hpp new file mode 100644 index 0000000..46556b6 --- /dev/null +++ b/_posts/snippets/hello.hpp @@ -0,0 +1,3 @@ +#pragma once + +void hello_snippets(); diff --git a/_posts/snippets/snippet.cpp b/_posts/snippets/snippet.cpp deleted file mode 100644 index bc4122e..0000000 --- a/_posts/snippets/snippet.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "snippet.hpp" - -#include - -void hello_snippets() { - std::cout << "Hello snippets!\n"; -} diff --git a/_posts/snippets/snippet.hpp b/_posts/snippets/snippet.hpp deleted file mode 100644 index 46556b6..0000000 --- a/_posts/snippets/snippet.hpp +++ /dev/null @@ -1,3 +0,0 @@ -#pragma once - -void hello_snippets(); 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 + +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(); -- cgit v1.2.3