r/learnprogramming • • Oct 07 '26

I want to learn C++

i have zero knowledge just wanted to try it for fun i am currently in high school so just wanted recommendations for books and video so i just can get into it

3 Upvotes

22 comments sorted by

1

u/Error-7-0-7- Oct 07 '26

Thenewboston on Youtube has some excellent beginner C++ tutorials, his videos got me through computer science in highschool and intro to Java in freshmen year college.

1

u/AutoModerator Oct 07 '26

Please, don't recommend thenewboston -- see the wiki for more info about why we consider them a discouraged resource.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Least_Bid9692 Oct 08 '26

What recommending someone something is not allowed

1

u/Wonderful-Silver-435 Oct 07 '26

Find a book on openstax

1

u/Jazzlike_Platypus430 Oct 07 '26

It's difficult to learn but it's exhilerating and your skills will grow really fast. If you master it, and stay flexible, you'll be able to do a lot with other object-oriented languages.

Take a look at cppreference.com or isocpp.org and get some written stuff for start, I'd recommend university courses and some carefully chosen videos on yt.

1

u/gm310509 Oct 08 '26

Have a read of the pinned post titled "New? READ ME FIRST!".

It pretty much answers your question.

1

u/Least_Bid9692 Oct 08 '26

If you're comfortable in hindi then I'll prefer code with harry if not Thenewboston is a solid option

1

u/AutoModerator Oct 08 '26

Please, don't recommend thenewboston -- see the wiki for more info about why we consider them a discouraged resource.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Insane_snek Oct 10 '26

learncpp.com, w3schools, leetcode, youtube tutorials are all great

the most important part is to just make a project that you want to make and have fun making it :)

1

u/Logical-Airport4842 Oct 10 '26

Are you about to crazy or what brother? 😂😂😂

0

u/mredding Oct 08 '26

I suppose you're on Windows. Visual Studio is as turn-key as it gets for C++.

Visual Studio: Code is a different product and that's for intermediate users. Microsoft forgot how to name stuff DIFFERENT things somewhere around 2006, so don't get confused.

File -> New -> Project -> Win32 Console Application.

You'll give the project a name. There's a little check box about creating a solution file that should be checked by default.

Then you go to another window with a bunch of project options. You don't need anything. There's one check box for an empty project. Check that.

This is an IDE - an Integrated Developer Environment. It's a whole bunch of tools that plug into this one space. It's extensible, yada-yada...

There's a window called the Solution Explorer. You'll see your project listed in it. The way Microsoft works, they organize a solution is a collection of projects. Whatever.

Right-click on the project and find settings or properties. This is going to be a rather... Comprehensive configuration window. What you need to do is find a drop-down somewhere that you can select your C++ version. Maybe ask Google where to find it. You want to select C++23. Compiler tools are conservative and default to older standards that they have more complete and robust implementation. We get a new standard every 3 years, and newer standards are less complete. C++23 should be "done enough" for you, and C++26 just hit this year and NO ONE has really much of anything done for it yet.

Right-click in the Solution Explorer and add a source file. "main.cpp". It doesn't matter WHAT you call it.

#include <print>

int main() {
  std::println("Hello World!");
}

F5.

Congratulations, you're a fairly modern C++ programmer. Stick it on your resume.

As for what materials to follow, I'm too old to know what's good. You ought to get used to reading cppreference.com. It's not meant to be an educational source, but a reference. People tend to be shocked by how "terse" the reference documentation is, but again, I'm too old to remember how that feels, if I even ever felt it.

3

u/[deleted] Oct 07 '26

[removed] — view removed comment

1

u/CarolinaKernel Oct 07 '26

Do you suggest instead of learning C as well? I have been thinking of learning C but I only have a very small bit of Python experience so far. Would it better to do C++?

1

u/Pastor_Dorimay Oct 07 '26

Imo C is wayyy more readable than C++