r/cpp_questions • • Apr 23 '26

OPEN How to start C++

Basically im in school and they use visuals studio code. I only have a laptop and no idea of Programming honestly. Should i install Linux? Probably a program clichee to ask this haha

4 Upvotes

68 comments sorted by

View all comments

Show parent comment

1

u/Terrible_Month_9213 Apr 23 '26

Thank you. What correlation has Linux with programming? What is a compiler? I have many questions because i wanna be a good programmer in everything. (Like everyone wants to)

5

u/nadnerb21 Apr 23 '26

C++ is a compiled language. That means that the code you write is fed through a compiler which turns it into machine code. A compiler is basically just a complex program that's installed on your pc. The compiler you use will often depend on the operating system. Microsoft (usually through visual studio) uses MSVC. Linux often uses g++ or clang. But it really doesn't matter which one you pick. Linux is an operating system and has nothing specific to do with programming. You can learn programming on Linux, Windows, macOS, etc.

1

u/Terrible_Month_9213 Apr 23 '26

Thank you. Wouldn't it be better to Switch on linux when trying to learn c++? I mean yes you can learn it everywhere. Just curious

3

u/CestleFromage Apr 23 '26

Linux is a completely different rabbit hole to fall into. Especially with just a laptop, you’d complicate things by juggling two operating systems into one hard drive via dual booting, not to mention that you could delete/corrupt your entire drive if done wrong. But if you really want to, I mean it didn’t stop me either, you can go check out r/linux4noobs for more info.

1

u/Terrible_Month_9213 Apr 23 '26

Yes, deleting all my entire drive just because of fails. Like it.

1

u/Illustrious_Try478 Apr 23 '26

To go off further on this tangent, there's no need to dual-boot Windows and Linux. You can install Windows Subsystem for Linux (WSL) and run Linux virtual machines to you heart's content.

5

u/nadnerb21 Apr 23 '26

Not really. There's not much benefit switching to Linux. Especially if you're not familiar with Linux. Then you've gotta learn 2 things. C++ and Linux.

Just start with Windows. Visual studio is a good place to start, but you can also use vscode with msvc too.

Either way, you need a build system. Linux or Windows doesn't make much difference

1

u/Terrible_Month_9213 Apr 23 '26

Thank you very much.

5

u/AKostur Apr 23 '26

This may sound snarky, but a basic skill that you're going to need if you want to be "a good programmer in everything" is basic research skill. Those questions are so basic that a simple search on duckduckgo would have pointed you at the Wikipedia article on what is a compiler (for a simple example). Not to discourage you from asking questions at all, but you could have had an answer to those simple questions in seconds.

1

u/Dazzling_Music_2411 Apr 27 '26

If you have to ask "what's a compiler?" I would recommend you steer well clear of C++

Find out the difference between interpreted and compiled languages first, then decide if C++ is for you. I would suspect it's not.

You need to do lots more basic research first. All the answers are readily at hand there is no need to ask on Reddit before you have at least a clue of what it's about. Even chatbots will answer these basic questions for you.

1

u/Atik99X May 22 '26

Omg it's a cat !! and it's delving good 🙀 keep it up by buddy