tcheck.cpp - numeric - C++ library with numerical algorithms | |
git clone git://src.adamsgaard.dk/numeric | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
tcheck.cpp (279B) | |
--- | |
1 // Function used for reporting the condition of a | |
2 // statement to stdout using ANSI colors. | |
3 #include <iostream> | |
4 | |
5 void check(const bool statement) | |
6 { | |
7 if (statement == true) | |
8 std::cout << "\t\033[0;32mPassed\033[0m\n"; | |
9 else | |
10 std::cout << "\t\033[1;31mFail!!\033[0m\n"; | |
11 } |