enter image description here
I watched a YouTube channel with the title: "Instructions for installing Visual Studio Code for C/C++ programming | ProPTIT" (this is a Vietnamese channel – because I am a Vietnamese student). I did as instructed. After that, I tried running a hello word script in C++ to check if the software was installed successfully, but I got this error. Please help me troubleshoot this problem
I hope I can understand visual studio code and can use it well to code
2
Answers
Install C++ Extension:
Open Visual Studio Code.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or press Ctrl+Shift+X.
Search for "C++" in the Extensions view search box.
Install the "C/C++" extension provided by Microsoft.
It seems the g++ installation is O.K., however it’s not allowed to use characters from the extended ASCII table. ọ and ậ are causing a problem here, as you can see in the error message, "học tập" was interpreted as "h?c t?p"
Either change the folder name to not have these characters or move the cpp file to another folder.