CMMTree v1.0
main_00.hpp
Go to the documentation of this file.
1#ifndef _main_00_hpp_
2#define _main_00_hpp_
3//---------------------------------------------
4#include <stdio.h>
5#ifdef _WIN64
6 #include <windows.h>
7#else
8 // ...
9#endif
10
11// uncomment to disable assert()
12// #define NDEBUG
13#include <cassert>
14#define assertM(exp, msg) assert(exp && msg)
15
16
20#define NODE_COUNTER
21
24#ifdef NODE_COUNTER
25 #define MAX_CMMTree_NODES 1'100'000'001
26 //#define MAX_CMMTree_NODES 10000
27
28 #define MAX_NODES_TO_PRINT 35
29 // #define PRINT_ALL_PATHS // Don't try to display all paths if the tree has a billion nodes ;).
30#endif
31
32#include "cmmtree.hpp"
33
34int main_task();
35int main_task(int argc, char * argv[]);
36
37
38auto time_stamp = [](std::string msg){
39 std::time_t t_c = std::chrono::system_clock::to_time_t( std::chrono::system_clock::now() );
40 SetColor(GREEN);
41 std::cout << msg ;
42 //std::cout << std::put_time(std::localtime(&t_c), "%F %T.\n\n") << std::flush; // Linux
43 char mbstr[100];
44 if (std::strftime(mbstr, sizeof(mbstr), "%c \n\n", std::localtime(&t_c))){
45 std::cout << mbstr << std::flush;
46 }
47 SetColor(WHITE);
48};
49
50//---------------------------------------------
51#endif