pro-cpp-cli-core 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +8 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -147,16 +147,16 @@ function initProject() {
|
|
|
147
147
|
if (!fs.existsSync(mainCppPath)) {
|
|
148
148
|
// FIXED TEMPLATE: Added Windows UTF-8 support to fix "ЁЯЪА"
|
|
149
149
|
const template =
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
`#include <iostream>
|
|
151
|
+
#include <windows.h>
|
|
152
152
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
int main() {
|
|
154
|
+
// Set console output to UTF-8 to support emojis and international text
|
|
155
|
+
SetConsoleOutputCP(CP_UTF8);
|
|
156
156
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
std::cout << "🚀 PRO C++ is running!" << std::endl;
|
|
158
|
+
return 0;
|
|
159
|
+
}`;
|
|
160
160
|
fs.writeFileSync(mainCppPath, template);
|
|
161
161
|
}
|
|
162
162
|
|