OPERATING SYSTEMSOS Linux

C++ Tutorial for Beginners – Learn C++ in 1 Hour

Learn C++ basics in 1 hour! 🚀 This beginner-friendly tutorial is your fast start for this powerful language.

🚀 Ready for a deep dive?
– Check out my complete C++ course: https://mosh.link/cpp-course
– Subscribe for more awesome content: https://goo.gl/6PYaGF

📕 Get the FREE goodies:
– C++ cheat sheet & summary notes: https://mosh.link/cpp-cheatsheet

✋ Stay connected:
– Twitter: https://twitter.com/moshhamedani
– Facebook: https://www.facebook.com/programmingwithmosh/
– Instagram: https://www.instagram.com/codewithmosh.official/
– LinkedIn: https://www.linkedin.com/school/codewithmosh/

📖 TABLE OF CONTENT
0:00:00 Course Introduction
0:00:56 Introduction to C++
0:04:14 Popular IDEs
0:06:11 Your First C++ Program
0:13:36 Compiling and Running a C++ Program
0:16:01 Changing the Theme
0:17:16 Course Structure
0:18:48 Cheat Sheet
0:19:20 Section 1: The Basics
0:19:52 Variables
0:26:00 Constants
0:27:28 Naming Conventions
0:30:25 Mathematical Expressions
0:36:39 Order of Operators
0:39:49 Writing Output to the Console
0:49:06 Reading from the Console
0:53:41 Working with the Standard Library
0:58:19 Comments
1:00:51 Introduction to Fundamental Data Types
1:01:41 Section 2: Fundamental Data Types
1:04:45 Initializing Variables
1:09:29 Working with Numbers
1:13:03 Narrowing
1:15:17 Generating Random Numbers

💡 Why C++?
– It’s a high-performance language used in gaming, systems programming, and more.
– Great for learning core programming concepts.

👉 This tutorial is perfect for you if:
– You’re a complete beginner.
– You want a fast and practical intro to C++.
– You’re aiming for a career where C++ is valuable.

#coding #programming

source

by Programming with Mosh

linux foundation

23 thoughts on “C++ Tutorial for Beginners – Learn C++ in 1 Hour

  • Thanks bro from 2024. I don't know anything about c++. but after this video I got to know something about c++. I want to become a c++ programmer. By the way don't laugh I am just studying 9th standard. But anyway thanks for this amazing video. This video is a great support for me to become a c++ programmer.

  • "its pretty easy, you can knock it out in a couple of minutes :)"
    me thirty-five minutes in fighting a host of demons and errors because I put my << backwards…..

    but! this is a really well made, comprehensive guide for beginners

  • hi, for the problem where you swap the variables, you could also use :
    int a =1;
    int b=2;
    cout <<b<<endl;
    cout<<a;

    Would this also be a right way to solve this problem?

  • the solution to the first problem made me rewatch the same 30 sec clip like 40 times .

  • A brilliant teacher: I am sticking with you to learn…the best style to teach YouTube C++

  • One of the best full length C++ courses online just thanks to the animations and the close up code. Thanks so much for making the videos! I’m working on C++ and Apple Metal now🎉

  • who needs IDEs I just use Notepad++ with a command prompt and a makefile

  • If you are just giving a snapshot of your paid course, consider changing the title, and just say in the beginning that its an introduction video

  • Thanks Mosh , i always felt this was complex when in reality its so simple..thanks from India

  • i started coding at the age of 13. i found it so irritating at the first. i am from india and i want to become a video game programmer as im so interested in games. im 14 now and my brain once more ignited to do coding today. without skipping a single strand, i watched whole video and im ready to hop back into coding after a year. hope i do well. :))

  • My first tutor at senior school in 1981 was the head of 'information technology' as it was known back then.having the computers(3800z research machines if I remember correctly, behemoths they were too😊)at our desks seemed to him an opportunity not to be wasted. Hence he made it his personal crusade to teach us ,insisting that by the time we get to the big wide world that the majority ofpeople would be fluent in coding😂, I sort of learnt a bit,a tad more than the basics but not much.About five years after school I met a girl who ran a stall atcomputer fairs just as home computing was really taking off,she sold software and a lot of teach your self c++, java etc. I took one and finished the course assuming with the increasing amount of electronics being built into cars and my trade being automotive electrics/diagnostics it would be ultimately beneficial. Never used it once😂 ,automotive stuff is generally pre defined coding, as build codes etc. but I have used what I learnt for various projects,hobbying etc. The introduction of Arduinos etc. has made it more attractive to more people, my oldest daughter a 17 y.o graphic artist student and extremely talented artist, after seeing a me make an automatic beer bottle opener using a pro micro,took it upon herself to learn c++ and java a level or two above what I am willing to entertain,and in about half the time it took me just to learn enough C++ to function comfortably.she has just completed a programme to run multiple servos,motors ,motion sensors,lighting and about twenty stop motion cameras for her second short film,firmly blowing her dad into the weeds.I've been married to that same girl from the computer fairs for over 30 years now and still have the learn C++ cd in the loft,do you reckon I'd get my money back for it?

  • hey Mosh, can you add another hour to this video, I hear odd numbers are bad luck.

Comments are closed.