Answer the question
In order to leave comments, you need to log in
How to run c++ project in visual studio code?
How to run c++ code in visual studio code editor. Here is a simple example where you need to print the result to the console
. Haven't worked with c++ before, but I think you need a result like repl for node.js print("any string ...")
Answer the question
In order to leave comments, you need to log in
1) Написать нормальный код. С мейном, инклудами.
2) Подключить к VSCode нужный вам компилятор, компоновщик.
3) Скопилировать, слинковать, запустить.
Дальше будет классическая ошибка "консоль сразу закрывается" - гуглим "ожидание ввода".
А вообще - поставьте VS Community и не парьтесь.
2 years have passed, and I think that the author of the question has already found a solution to this problem, but for those who wandered here for a solution, I will leave a link to an article that should help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question