#include <cmath>
#include <math.h>
#include <algorithm>
+#include <ctime>
+
+#ifdef _WIN32
+ #define exp(x) (exp((double) x))
+ #define sqrt(x) (sqrt((double) x))
+ #define log10(x) (log10((double) x))
+ #define log2(x) (log10(x)/log10(2))
+#endif
+
typedef unsigned long long ull;
IntNode* left;
IntNode* right;
};
-
+
+struct ThreadNode {
+ int* pid;
+ IntNode* left;
+ IntNode* right;
+};
+
/***********************************************************************/
// snagged from http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.2
f.putback(d);
}
+/***********************************************************************/
+
+inline bool isTrue(string f){
+
+ if ((f == "TRUE") || (f == "T") || (f == "true") || (f == "t")) { return true; }
+ else { return false; }
+}
/***********************************************************************/
return simpleName;
}
+
/***********************************************************************/
inline int factorial(int num){