fix console output

Signed-off-by: hamjin <jinham@qq.com>
This commit is contained in:
2024-09-08 23:22:39 +08:00
parent 187cd014f7
commit 710174d6de

5
main.c
View File

@@ -18,7 +18,7 @@
} }
#ifdef Debug #ifdef Debug
#define DPRINT(s, ...) \ #define DPRINT(s, __VA_ARGS__) \
{ \ { \
printf(s, ...); \ printf(s, ...); \
} }
@@ -46,6 +46,9 @@ const char SS[] = "381237373432790016";
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
int thread; int thread;
#ifdef WIN32
SetConsoleOutputCP(CP_UTF8);
#endif
if (argc < 2) if (argc < 2)
thread = 4; thread = 4;