
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Motivational introduction to my course about C++ and info about how to download 100+ exercises regarding C++.
You will learn what a programming language like C++/IDE and a compiler is. What is C++?
If you have a problem compiling your C++ project than look here to find a solution. Some IDE's might be a bit different. You might have also made a few mistakes. Let's try to solve the problem.
We are exploring the concept of "variable", "variable type", "declaration", "definition". Exploring naming rules of variables and notations.
In this introductory lecture on C++ programming, we delve into the essential concept of variables. This lecture is designed for beginners who are starting their journey in programming with C++.
Topics Covered:
Introduction to Variables:
Explanation of what variables are and their importance in programming.
Real-world analogy to help understand the concept of variables.
Basic Variable Concepts:
Variables as containers that store values.
Naming conventions and the role of labels in identifying variables.
Variable Declaration and Initialization:
Syntax for declaring variables in C++.
How to initialize variables with values.
Understanding different data types and what kind of values they can hold.
Using Variables in C++:
Practical examples of writing values to the console.
Storing and manipulating values using variables.
Performing operations on variables and changing their values.
Types of Variables:
Overview of different variable types such as integers, floating-point numbers, and characters.
How to choose the appropriate variable type for different kinds of data.
We learn how to download data using cin>> and we write a simple program that loads first name and surname, then it prints out that values in the console output.
Key Learning Points
Using cin to get input from the user.
Proper syntax for cin with angle brackets pointing towards the variable.
Assigning user input to variables.
Handling different data types in user input.
Simple error handling (to be covered in detail in future lessons).
Practical examples of interacting with users via console input and output.
We learn what operators are. We learn about arithmetic operators like: +, -, /, * and assignment operators like +=. We learn how incrementation and decrementation works, and what's the difference between post and pre incrementation / decrementation.
In this comprehensive lecture, we dive into the fundamental concepts of arithmetic and assignment operators in C++. This session is designed for students who are beginning their journey in C++ programming and need a solid understanding of how to perform basic operations on variables and expressions.
Key Topics Covered:
Introduction to Operators:
Definition and importance of operators in programming.
Overview of arithmetic and assignment operators.
Arithmetic Operators:
Addition (+): Learn how to add two numbers and display the result.
Subtraction (-): Understand how to subtract one number from another.
Multiplication (*): Explore how to multiply numbers.
Division (/): Discover the differences between integer and real number division.
Modulo (%): Gain insights into finding the remainder of a division operation.
Handling Division in C++:
Explanation of integer division and its limitations.
How to perform real number division using float or double.
Using the Modulo Operator:
Practical examples of modulo operation.
Understanding the concept of remainders in division.
Increment and Decrement Operators:
Increment (++): Learn how to increase a variable's value by one.
Decrement (--): Learn how to decrease a variable's value by one.
Pre-increment vs. Post-increment: Differences and use cases.
Pre-decrement vs. Post-decrement: Differences and use cases.
Assignment Operators:
Shorter notation for operations with assignment.
Practical examples of using +=, -=, *=, /=, and %=.
Practical Examples and Exercises:
Hands-on examples to illustrate each operator in action.
Encouragement to practice and become proficient in using these operators.
By the end of this lecture, students will have a thorough understanding of how to use arithmetic and assignment operators in C++. They will be equipped with the knowledge to perform basic arithmetic operations, understand the nuances of integer vs. real number division, and utilize increment, decrement, and assignment operators effectively in their programs.
You'll learn how to use and what are logical operators like conjunction, disjunction and negation.
You'll learn:
What are conditional statements
What are curly braces used for {}
What are nested conditional statements
We practice the loop, we write a program that calculates the number of digits in the number total, and a program that prints a nicely formatted multiplication table. We learn what nested loops are.
What "return" keyword does?
How do you solve exercise within Udemy interface?
We learn how to make the program that does not crash if the user enters invalid data. We also make sure that after entering invalid data into our program, user would get informed and asked for the correct data until the data is correct.
Shortcut text version of why we used cin.ignore and cin.clear in last lecture :)
Why do we use cin.ignore and cin.clear.
You will finally understand:
1) why do we use these instruction
2) how to use them
3) when to use them
4) what makes them different
as a bonus I explain getline function, you will understand use cin vs getline.
How to make sure to correctly free memory of dynamically allocated array?
I will show you a common error while freeing memory and how to solve it.
Document describing why pointers are needed, why do we even learn about them?
In this lecture I will explain the things that are the most confusing about pointers
Write a function that takes a list of numbers as an argument and returns the sum of all the positive numbers in the list. The function should ignore any negative numbers or zeros in the list.
Save your precious time: Learn how to program in C++ in a fast and easy way!
If you want to learn how to program in C++ without confusion or stress - you're in the right place.
I created this course to help beginners like you learn C++ step by step, in a way that’s clear, practical, and beginner-friendly.
We’ll start by understanding the fundamentals and syntax of C++ - so you build a solid base first.
As the course progresses, you’ll gradually apply what you’ve learned by writing real programs and practical examples.
You won’t just watch - you'll actively practice, and by the end, you’ll be writing your own C++ code with confidence.
No experience? No problem.
I’ll walk you through everything from zero.
Even if you’ve never written a single line of code or have no idea how C++ works - I’ll explain it all from the ground up.
You’ll finally understand how programming works, and I’ll help you break the myth that coding is only for “geniuses” or math experts.
C++ is powerful, and I’ll show you that it’s also learnable.
You will bust the myth that programming is a difficult thing only for the few!
Here’s how I’ll help you succeed:
I’ll teach you the core concepts of C++, with real context and practical examples
I’ll explain why we write things a certain way, not just what to type
I’ll help you build projects so you can see your progress with every step
I’ll show you how to use advanced C++ features with confidence
I’ll make sure you truly understand what your code is doing
I believe anyone can learn to program — including you — if they’re taught the right way.
I believe that everyone has the ability to develop software if they are taught properly.
Including you.
Every time I introduce something new, I’ll give you real context.
By the end, you’ll finally understand what your code is doing.
Over 350,000 students have already joined my courses
I’ve helped thousands of people just like you, and now it’s your turn.
But if it’s not what you expected, you’ve got 30 days to get a full refund — no questions asked.
Got questions about C++ or anything from the course?
I’m always happy to help. Just reach out - I reply to every message from students who are eager to learn.
Watch the free preview lessons to see how I teach.
Don’t buy a course blindly - make sure my teaching style fits you.
JOIN NOW and become Expert in C++