-
Hello everyone. I tried to write a code in c++ in vs code, but when i click on "run" it shows me some weird symbols and chinese characters. I have c/c++ extension installed by the way. |
Beta Was this translation helpful? Give feedback.
Answered by
AumGupta
Dec 1, 2024
Replies: 1 comment 1 reply
-
Hey @LLeaXX, I would suggest you run the In command prompt go to the directory of cource.cpp: cd "c:\Users\3yb\Desktop\c++\"
g++ course.cpp -o course
.\course.exe If it still doesn't work, I will suggest you consider reinstalling the compiler. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LLeaXX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @LLeaXX,
This is rare to encounter but I have seen such cases. The problem is that the cause of this problem is difficult to identify.
I would suggest you run the
course.cpp
file via command line first to see if it runs.In command prompt go to the directory of cource.cpp:
If it still doesn't work, I will suggest you consider reinstalling the compiler.