diff --git a/examples/example b/examples/example new file mode 100755 index 0000000..7249736 Binary files /dev/null and b/examples/example differ diff --git a/examples/example.cpp b/examples/example.cpp new file mode 100644 index 0000000..70e46d3 --- /dev/null +++ b/examples/example.cpp @@ -0,0 +1,14 @@ +#include +#include +#include + +using namespace pipecolors; + +int main(void) { + + int num = 5; + const char* str = "My number is"; + pcprintf("|01%s |09%d\n", str, num); + + return 0; +} \ No newline at end of file diff --git a/examples/example2 b/examples/example2 new file mode 100755 index 0000000..0d88da9 Binary files /dev/null and b/examples/example2 differ diff --git a/examples/example2.cpp b/examples/example2.cpp new file mode 100644 index 0000000..a26b0d4 --- /dev/null +++ b/examples/example2.cpp @@ -0,0 +1,14 @@ +#include +#include +#include + +using namespace pipecolors; + +int main(void) { + + int num = 5; + const char* str = "My number is"; + pcprintf("|40%s %d|39\n", str, num); + + return 0; +} \ No newline at end of file