optimize code & replace all printf with std::cout.

This commit is contained in:
ValKmjolnir
2022-07-09 23:36:14 +08:00
parent 2ed20f6362
commit bcdc55a652
7 changed files with 172 additions and 174 deletions
+1 -10
View File
@@ -8,6 +8,7 @@
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <algorithm>
@@ -35,16 +36,6 @@
#include <sys/wait.h>
#endif
#ifdef __linux__
#define PRTHEX64 "%lx"
#define PRTHEX64_8 "%.8lx"
#define PRTINT64 "%ld"
#else
#define PRTHEX64 "%llx"
#define PRTHEX64_8 "%.8llx"
#define PRTINT64 "%lld"
#endif
const uint32_t STACK_DEPTH=2048;
inline double hex_to_double(const char* str)