
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Master the C++ programming language to build solid foundations with loops and branching. Apply algorithms to data structures and problem solving, progressing from language familiarity to unseen challenges.
Explore course logistics for C++ programming for beginners: sections with theory and hands-on coding, a code repository, a Discord help channel, note-taking, practice questions, and quizzes, plus online IDE options.
Explore the building blocks of flowcharts, from start and end ovals to input/output parallelograms, assignment rectangles, and decision diamonds. Map a problem into step-by-step flows with arrows and conditions.
Learn to compute simple interest with a flowchart using the formula principal × rate × time ÷ 100, reading three inputs, storing them in memory buckets, and printing the result.
Find the largest of three numbers using a flowchart. Read the values of the three numbers, compare them using greater than or equal to, and print the largest value.
Learn to compute the sum of the first N numbers with a flowchart loop, initializing sum to zero, iterating from 1 to N, and printing the result.
Learn to handle multiple inputs in a flowchart by reading numbers, updating the sum in a loop, and printing the result without storing all numbers at once.
Follow a simple flowchart to test primality with a loop from 2 to n-1 and a modulus check.
Compute the greatest common divisor with a flowchart using brute-force checks from 1 to the minimum of two numbers, illustrated by 8 and 12.
Explore a real-world flowchart showing how a bank employee processes four requests—deposit, cash withdrawal, check deposit, and demand draft—while managing a queue and open till six pm.
Design a flowchart for a bank guard who adds customers to a queue before 6 p.m and closes the bank at 6 p.m, looping to check time and queue.
Explore pseudocode as a human readable, language independent description of an algorithm, bridging flowcharts to code and covering input/output, assignment, conditionals, and loops for review before coding in C++.
Learn to write pseudocode for simple interest by reading B, R and B and computing B × R × B ÷ 100.
Learn to write pseudocode for summing numbers from 1 to n using a while loop, as shown in the flowchart. Initialize sum to 0, increment i, and print final sum.
Learn to write pseudocode that sums N numbers using a loop, read each input, accumulate the sum, and print the final result.
Learn to implement a prime check in pseudocode by converting a flowchart into code, using a loop from two to n minus one to test divisibility and determine prime.
Learn to write pseudocode for gcd by iterating from 1 to the minimum of two numbers. Identify the largest divisor common to both and print the gcd after the loop.
Read input value n and use a nested loop to print a star pattern: in row i, print i stars, then move to the next line with a newline character.
Master printing a star pyramid in C++ using loops, spaces, and stars, guided by observations and a clear pseudocode approach for any row pattern.
Explore the C++ boilerplate, the template that starts your program at main, header files like iostream, preprocessor directives, namespaces, and how compilation yields an executable to print hello world.
Learn to set up a c++ development environment, write a simple hello world program, compile to an executable, and run it from the terminal using a text editor.
Learn to submit a problem on the Udemy editor by printing Hello world with cout, and understand exact output, spaces, and the difference between print and return statements in C++.
Learn to read marks for physics, chemistry, and maths and compute their average using c++ input and output. Explore integer and floating point types, typecasting, and user input.
Learn how to read a number and print its square in c++ by declaring a number, reading its value, and printing the result; the lesson demonstrates tests passing.
Explore how the preprocessor handles directives like hash include and defined, showing how macros replace symbols with their replacement text before compilation.
Learn how identifiers name entities in a C++ program, distinguish identifiers from variables, and explore how memory locations store data through practical function and variable examples.
Learn how keywords are reserved words with special compiler meaning, and why you cannot use them as identifiers; review common C++ keywords like for, long, class, public, private, and operator.
Explore the main function in C++ and how return values signal success or failure, including declarations, definitions, boilerplate, and command line arguments.
Explore how namespaces prevent naming conflicts when using multiple libraries, including the standard C++ namespace and open tv, by qualifying functions with their namespace.
Learn how comments in C++ annotate code and are ignored by the compiler, helping explain intent and deactivate code by using single-line and multi-line comments.
Explore keywords, identifiers, and header files, and note execution begins with curly brackets. Remember that the compiler ignores whitespace, statements end with semicolons, and comments can be single-line or multi-line.
Implement a function that reads a name as a string and prints hello followed by the name, using a string variable to capture the first word.
Learn how variables, as memory buckets, hold data of various types, are declared and initialized, assigned values, and stored in RAM; follow naming rules and respect strong typing.
Explore C++ datatypes, including booleans, integers, and characters, and how true or false values map to memory. Understand float and double precision and how set precision affects output.
Use the size of operator to measure memory size for c++ data types and see how many bytes each bucket occupies. Find that int is four bytes (32 bits) on this system, char is one byte, and float and double vary, with double offering higher precision than float.
Explore binary numbers to understand how machines store data and execute instructions as zeros and ones in memory, from compiled code to processor operations.
Learn how integers are stored in memory using binary representation and a division-by-two method, with examples like 42, 43, and 29. Understand fixed-size storage, typically 32 bits, and 64-bit types.
Explore data type modifiers in c++, including short, long, and long long, and their memory usage and ranges. Understand signed and unsigned integers and how the bit denotes the sign.
Explains how negative numbers are stored in 32-bit signed integers using two's complement, by inverting bits and adding one, enabling subtraction via addition.
Explore how to calculate data type ranges in c++ by comparing unsigned and signed integers on 32- and 64-bit systems, and why big integers may be needed.
Explain how floating point numbers are stored, with sign, magnitude, and exponent, and why single precision uses 23 bits while double uses 52 bits for closer approximations.
Store characters in memory with one-byte chars mapped by the ascii table, supporting up to 256 values, while Java uses two-byte Unicode for broader characters.
Explain how booleans in c++ store true or false using one byte, even though a single bit would suffice, with non-zero values treated as true and zero as false.
Learn how constants work in programming by comparing macros, which are preprocessor replacements, with const variables, which are read-only values stored in memory and must be initialized.
Learn how typecasting works in C++ by mixing integers, floats, booleans, and characters to trigger implicit conversions, affecting division results and ASCII values.
This lecture demonstrates explicit typecasting in C++ by forcing data types with a cast, such as converting int to float for division and to boolean or char as needed.
Compute the average of five integers by summing inputs, casting the sum to float, and format the result to four decimal places with fixed and setprecision from IO management header.
Learn to write a simple C++ function that reads two numbers and prints their sum, using cin, and optionally a single line input, by printing a + b.
Read five float numbers, compute their average, and print the result with two decimal places using set precision in C++.
Discover how to use the cmath library in c++ to compute ceil, floor, and round, with definitions of each: smallest not less than, largest not greater than, and nearest.
learn to implement a simple interest calculator in c++ by reading principal, rate, and time as floats, computing P * R * T / 100, and printing the result.
Learn to use arithmetic operators to add, subtract, multiply, and divide integers, explore integer division and remainders, and note how whitespace and formatting affect code output.
Explore compound assignment operators in C++, including plus-equals, minus-equals, multiply-equals, and divide-equals, and see how they update a variable’s value with concise syntax.
Learn increment and decrement operators in c++, including plus plus and minus minus, post and pre forms, and how assignment affects values with examples like a and b.
Explore relational operators in C++ by comparing values and evaluating booleans with greater than, less than, less than or equal to, greater than or equal to, equal to, and not equal to.
Explore how logical operators combine conditions using and, or, and not to evaluate true or false outcomes, with example scenarios like price, sale, and purchases.
Learn bitwise operators including and, or, xor, not, and left and right shifts to manipulate binary data, with fast performance and examples like 5 and 7 and 5 or 8.
Explore bitwise operators using left and right shifts. Left shift multiplies a number by two to the power of b; right shift divides by two to the power of b.
Master conditional statements through the if block, evaluating a condition such as marks greater than 80 to execute code like printing let's party, with optional single-line blocks and braces.
Learn how if and else blocks control flow in C++ by executing code when a condition is true or false, with examples showing output based on marks thresholds.
Master if-else-if-else chains in C++ programming for beginners, learning how top-to-bottom condition evaluation executes only the first true block.
Explore how multiple if blocks evaluate independently and can execute concurrently, contrasting with a single if-else that runs only one branch; understand truthiness with grades and weather examples.
Create a C++ program to calculate a tiered electricity bill using conditional statements. Apply rates: 0 for 0–100 units, 5 for 100–200, 10 for 200–300, and 12 for above 300.
Learn how the ternary operator works in c++ by evaluating a condition and returning a true or false statement. Use it as a compact if-else for simple assignments.
Explore the switch case construct in C++ to select and execute code blocks based on a value, using break to prevent fall-through and a default case.
Learn to build a simple c++ calculator using a switch case, reading a number, an operator, and another number, and performing plus, minus, multiply, divide, or modulus.
Explore two approaches to determine if a number is even or odd, using the modulo operator and bitwise and with one to check the last bit.
Learn to implement a C++ function that reads the balance x and withdrawal y, checks if y is within 90% of x, and prints yes or no accordingly.
Read five subject marks, compute the average, and determine the grade using an if-else chain: below 60 is D, 60 to 70 C, 70 to 80 B, 80 to 90 A, above 90 A+.
Create a C++ electricity bill calculator using four tiers: 1–50 at ₹20, 51–100 at ₹30, 101–150 at ₹40, beyond 150 at ₹50.
Learn how while loops repeat work using a starting value, a stopping condition, and updates, with calories example showing finite iterations and the risk of an infinite loop.
Learn how to read numbers one by one, accumulate a running sum with a loop controlled by N, and compute the final total without storing all inputs.
Explain the for loop in C++, showing how initialization, condition, and update form a compact loop, and compare it to while loops with a 10-iteration example.
Learn how for loops and while loops are equivalent in C++, with flexible initialization and update, optional components, and breaking the loop to avoid infinite execution.
Compute the sum of digits of a number by extracting digits with mod 10, adding to a running total, and truncating digits with division; use for or while loops.
Explains solving a star pattern problem by using loops to print spaces and stars per row, reading input, and converting pseudocode into working C++ code.
Explore solving the abcd pattern in c++ by printing n rows where each row shows an increasing sequence then a decreasing sequence of letters, using ascii arithmetic and nested loops.
Learn two ways to reverse a number in c++, first by printing digits from last to first using modulo and division, then by actually reversing the integer.
Learn how to reverse a number by extracting the last digit and building the reversed value with result = result * 10 + digit, while dividing the number by 10.
Explore how the break statement stops a loop and controls flow in c++ with a gym analogy. Break exits the loop when a condition is met, preventing code from running.
Use the continue statement to jump to the next loop iteration, skipping code below it, such as not printing multiples of five. Update the loop variable to avoid infinite looping.
The lecture explains checking whether a number is prime by testing divisors from 2 to n-1 and using a break to stop when a divisor is found.
Learn how the do-while loop serves as an exit control loop in C++, where the block runs once before the condition is checked, with shopping and money-left examples.
Learn nested loops in C++ by printing a matrix with rows and columns, using an outer loop for rows and an inner loop for columns, incrementing a value.
Explore constructing a number pyramid in C++ by using nested loops to print spaces, increasing numbers, and decreasing numbers, with careful value initialization and updates.
Are you an absolute beginner looking forward to kickstart your journey in the programming domain. Coding can be hard skill learn to learn for many but no more. Welcome to C++ Programming Essentials, the most fundamental course that every aspiring programmer should take to kickstart their journey in the world of programming. The course teaches you the fundamental building blocks of programming and builds a logical thinking mindset using C++ as our programming language. Many concepts taught in the course are also relevant to other languages like Java, Python, JavaScript etc with few changes in the coding syntax
You will understand the basic concepts and techniques to break down a given problem into smaller parts by drawing flowcharts, write pseudocode, and then diving deep into C++ topics like -
variables, datatypes, flow control using branching & loops, functions, arrays, character arrays & strings, recursion, bitmasking & OOPs concepts.
Course Features
HD Videos
Intuitive Explanations
Beginner Friendly Teaching
Tested Industry vetted curriculum
Assignments & Q-A Support
Certificate of Completion
The course is your first step towards problem solving, and will help you to get your basics right. After this course, you can easily pursue a course on learning a programming language of your choice, followed by Data Structures, Algorithms & Competitive Programming. Many top companies like Google, Facebook, Amazon, Directi, CodeNation, Goldman Sachs etc encourage algorithmic programming and conduct coding competitions to hire smart people who can solve problems.
This course is taught by Prateek Narang, who is not just a software engineer but a teacher by heart and many bestseller courses on Udemy in Algorithms category! He has worked with companies like Google, and has co-founded two startups including Coding Minutes, which is now a part of Scaler Academy.