#CAN SOMEONE HELP ME WITH VSCODE
26 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
@coarse mountain
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
which one should i downlaod
Actually no, I'm dumb
Scratch that
This is a C++ program, but you named the file with the .c extension
Rename it to end with .cpp
Screenshot the entire screen. Are there any more errors in the terminal tab at the bottom?
Can you scroll up a bit?
The first few lines of a error are always the most important ones
Aha, see how it still uses gcc.exe instead of g++.exe. That's a C compiler, not a C++ one
What do you have in your tasks.json?
Probably need to change it there
try using the g++ demo.cpp in the terminal, if all works good
do .\a.out
if this works that means gcc is installed correctly
you then go install some vs code extensions
just type vs code for c and follow along
don't install gcc again though
what is tasks.json
As always I recommend my own VSC tutorial: https://github.com/HolyBlackCat/cpp-tutorials
It explains that too
ty
@coarse mountain Has your question been resolved? If so, type !solved :)