Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

fix: add missing <cstdio> include and flush stdout explicitly

tokenflow1m8e4f1acb9615
diff --git a/electron/native/cursor-monitor/src/main.cpp b/electron/native/cursor-monitor/src/main.cpp
index 7ac86945..9a811f7b 100644
--- a/electron/native/cursor-monitor/src/main.cpp
+++ b/electron/native/cursor-monitor/src/main.cpp
@@ -1,4 +1,5 @@
#include <windows.h>
+#include <cstdio>
#include <iostream>
#include <string>
#include <thread>
@@ -48,7 +49,7 @@ int main() {
if (type != lastType) {
lastType = type;
- std::cout << "STATE:" << type << "\n";
+ std::cout << "STATE:" << type << std::endl;
}
}