CMMTree v1.0
main_00.cpp
Go to the documentation of this file.
1#include "./hpp/main_00.hpp"
2
3#include "./../project/basic_00.hpp"
4
5#ifdef MAIN_TASK
6 #ifdef NODE_COUNTER
7 template<class X>
8 inline unsigned node<X>::n_count=0;
9 #endif
10#endif
11
12int main(int argc, char * argv[]) {
13 #ifdef _WIN64
14 SetConsoleOutputCP(CP_UTF8);
15 #endif
16
17 time_stamp("\nSTART : ");
18
19 #ifdef MAIN_TASK
21 #endif
22
23 try{
24 // ...
25 #ifdef MAIN_TASK
26 main_task();
27 #else
28 println("Hello World").
29 #endif
30 // ...
31 }
32 catch(const std::exception& e) { SetColor(BRED); println(e.what()); SetColor(DEFAULT); }
33 catch( ... ) { SetColor(BRED); println("UNKNOWN ERROR !"); SetColor(DEFAULT);}
34
35 #ifdef MAIN_TASK
36 println("");
38 #endif
39 // ...
40 time_stamp("\nSTOP : ");
41 return 0;
42}
The node class definition. This is a template of a class whose objects are used to build a tree of re...
Definition node.hpp:45
static void n_counter_info()
The function displays information about the total number of node<X1> objects.
Definition node.hpp:246
constexpr void println(auto const &a)
Definition utils.hpp:81