Introduction
Introduction Statistics Contact Development Disclaimer Help
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 }
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.