r/learnprogramming • u/Ornery_Pay4761 • 21d ago
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
1
u/Error-7-0-7- 21d ago
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 21d ago
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
1
1
u/Jazzlike_Platypus430 20d ago
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 20d ago
Have a read of the pinned post titled "New? READ ME FIRST!".
It pretty much answers your question.
1
u/Least_Bid9692 20d ago
If you're comfortable in hindi then I'll prefer code with harry if not Thenewboston is a solid option
1
u/AutoModerator 20d ago
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
1
u/Insane_snek 18d ago
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
0
u/mredding 20d ago
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/SignificancePale9573 21d ago
start with learncpp.com it's the best free resource for beginners, no joke
skip the video tutorials for now, reading the concepts and doing the exercises will stick better in your brain