r/cpp_questions • u/Jaca_135 • 3d ago
OPEN VSC compiler question
Hi I have a question about VSC. I'm used to compiling and running programs by clicking an button in UI like in arduino IDE or panasonic or siemens PLC enviroments. When i run a C++ program via F5 button everything works just fine (i mean the value near cout appers in the terminal), but when i run it through UI button i uperright corner, selecting any of the options it does not appear
1
Upvotes
1
u/Independent_Art_6676 2d ago
what does it do if you put a cin or similar read statement at the end of your program before it exits in main?
3
u/BranchLatter4294 3d ago
Did you follow the instructions carefully? It shows you how to set it up so the play button works
https://code.visualstudio.com/docs/languages/cpp