Added clause for no color
This commit is contained in:
parent
57517f914a
commit
181d162c2c
Binary file not shown.
|
@ -0,0 +1,14 @@
|
|||
#include <cstdio>
|
||||
#include <iostream>
|
||||
#include <pipecolors.h>
|
||||
|
||||
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;
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,14 @@
|
|||
#include <cstdio>
|
||||
#include <iostream>
|
||||
#include <pipecolors.h>
|
||||
|
||||
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;
|
||||
}
|
Loading…
Reference in New Issue