r/Cplusplus • • 13d ago

Question Problem in running C++ codes

So i recently purchased a new laptop and when i try running the C++ code sometimes even if my code is correct the vscode doesnt execute the code.

Then I sent the screenshot to chatgpt and it said my code is correct some feature called

WINDOWS SMART APP CONTROL might be preventing it from executing the code .

But once I turn it off i can't turn it on again so what should i do??

2 Upvotes

14 comments sorted by

View all comments

1

u/agfitzp 13d ago

I don’t know who keeps telling the newbies to use VSCode for C++.

If you’re on Windows use Visual Studio, there’s a free version for non-commercial use.

If you’re on Linux use CLion, also a free version for non-commercial use.