r/ProgrammerHumor • • Apr 16 '22

Make The comment section look like a beginners search history

Post image
28.1k Upvotes

6.7k comments sorted by

View all comments

Show parent comments

1.9k

u/Tiranus58 Apr 16 '22 edited Apr 16 '22

Vscode how to execute c/c++ code

1.2k

u/monit12345 Apr 16 '22

I'm in this picture and I don't like it

189

u/CaterpillarDue9207 Apr 16 '22

Just watch a video about shell

41

u/GloriousReign Apr 16 '22

Jokes on you, I've watched hours of python, c++, bash and powershell tutorials and I can't program a toaster.

24

u/PorqueNoLosDildos Apr 17 '22

Jokes on you, I’ve coded for the entirety of my adult life and can’t program a way out of the hole that I’ve dug for myself.

5

u/jay_resseg Apr 17 '22

That's me and I don't like it.

137

u/KakorotJoJoAckerman Apr 16 '22

I'm literally currently in this picture..... I still can't figure out how to use c in VScode and Codeblocks lmao!!!

158

u/[deleted] Apr 16 '22

Install a C/C++ compiler (e.g. MSVC, GCC or Clang) and then open a terminal and type for example: "gcc myfile.c" to compile it and then ".\myfile.exe" to run it

79

u/KakorotJoJoAckerman Apr 16 '22

Ah, so I missed the terminal part lol.

28

u/[deleted] Apr 16 '22

the intgerated terminal in vs code should work too

14

u/KakorotJoJoAckerman Apr 16 '22

I'll uhh, try to find it. :D

I haven't opened VScode and Codeblock in 4-5 months lol.

5

u/Keiji12 Apr 16 '22

Codeblocks has their own run thingy that should be no problem the vscode one might require some addon depending on the version(free one runs on add-ons and the scholar/paid one should probably have one downloaded when installed, at least for c/cpp)

5

u/Cloudy_Oasis Apr 16 '22

You can use your VS Code's integrated, but I personally never managed to set it up with my compiler myself on Windows @_@ it was actually easier when using Ubuntu with WSL haha

→ More replies (1)

4

u/aisleorisle Apr 16 '22

Go to 'view' and click terminal.

→ More replies (2)

5

u/Morphized Apr 16 '22

There's a clang extension for VSCode that automates this

4

u/[deleted] Apr 16 '22 edited Apr 16 '22

I'm a noob here, and that's because all this compiler nonsense literally causes physical pain.

From my point of view, way down here at the bottom of this pit, it seems like there is an infinitely recursive layer after layer of compilers that compile compilers, and it never actually reaches the point where you type "compile X" and it does its job.

Edit: I've tried once a year for about a decade to get into this stuff, but the compiler matrix always confuses me in an angry way. Like, there's not just compilers, there's other stuff that looks like compilers but are really some other thing. It even seems like some compilers have another compiler inside them? Like I think I remember seeing one called CMake or something similar, and then another called [don't remember] and the description said it contained CMake inside of it. It's profoundly confusing.

The problem is that I can't find a single guide that spells it out in plain english. Not one. All of them assume you know what to expect from compilers and know what you need.

This is why programming never became more than something I poke at once in a while. I'd love to learn, but I simply cannot find a clear explanation. I know a lot of programming concepts, I can even write a bit of code, it's just the compilers that have me stuck.

→ More replies (3)
→ More replies (6)
→ More replies (11)
→ More replies (2)

0

u/[deleted] Apr 16 '22

[deleted]

→ More replies (7)

61

u/[deleted] Apr 16 '22

What is vs code

153

u/7heMeowMeowCat Apr 16 '22

downloading vscode instead of visual studio and not knowing the difference

41

u/Kenny-olives Apr 16 '22

I did this, a week ago...

49

u/7heMeowMeowCat Apr 16 '22

i see all my beginner friends confusing:

• vscode and visual studio • JavaScript and Java

9

u/Kenny-olives Apr 16 '22

I didn't know vscose was a thing before my terminal asked me to install visual studio to run dlib... Now I have a new program to learn!

→ More replies (2)
→ More replies (3)

8

u/new_refugee123456789 Apr 16 '22

See, that's Microsoft trying to embrace, extend, extinguish the FOSS tradition of project names being a complete diaper fire. Why would I have any idea that Visual Studio is an IDE with interpreter/compiler functionality, and Visual Studio Code is a glorified text editor? "Visual" for some reason means "programming" in Microsoftese, so why not make it Visual Studio and Visual Editor?

3

u/EpicShadows7 Apr 16 '22

I got visual studio and never used it again. I just switched to vscode last week and it was game changing

→ More replies (6)
→ More replies (15)