
Explore c++ data types, declaring int, float, double, char, and bool, and master comment styles, main function basics, and how memory usage differs between float and double.
Learn to print values of int, float, double, char, and bool in c++ using cout, std, and endl, with using namespace std for convenience.
Explore C++ arithmetic by declaring ints a and b, computing a + b into c, and printing results with cout, while noting unused variable warnings.
Learn how to perform add, subtract, multiply, and divide with floats in C++, and why modulo is not supported for floats, with examples matching integer operations.
Explore built-in library functions in C++ including sqrt, pow, abs, ceil, floor, and max, and learn how to include cmath, declare variables, and use cout for output.
Learn to read data from the terminal in c++ using cin and cout, handling integers, characters, and strings, including how spaces affect cin and when to use getline.
Learn to build a simple C++ program that reads two numbers from the user, computes their sum using two integer variables a and b, and prints the result.
Learn to write a C++ program that reads two float numbers, computes their sum and product, and shows both the originals and their rounded-up results, using a step-by-step approach.
Practice coding exercise 3 by building a C++ program that reads a circle radius, computes the area as pi times radius squared, and displays the result using std.
Read the cylinder’s radius and height, compute the volume with pi = 3.14 using the formula pi * radius squared * height, and print the result with basic validation.
Learn to implement a C++ program that reads principal, rate, and time, computes simple interest with principal × rate × time ÷ 100, and outputs the result.
Engage in coding exercise six by reading a Celsius temperature, converting it to Fahrenheit using the formula Fahrenheit equals Celsius times nine and five plus 32, and displaying the result.
Practice coding exercise seven by writing a program that reads a double floating point number and uses ceil and floor to show its rounded up and down values with cout.
Learn to write a simple c++ program that reads two integers, computes their sum, difference, and product, and prints the results with optional variable initialization and comments.
Explore if structures in C++ by reading an integer and printing whether it is positive, negative, or zero using if, else if, and else branches.
Learn how to write if conditions in C++ using if, else if, and when else is unnecessary, with input, compilation, and example scores.
Practice writing a C++ program that reads an integer, uses an if-else chain and the modulo operator to print whether the number is even or odd.
builds a c++ program that reads two numbers and an operator, performs add, subtract, multiply, or divide, with input validation and division-by-zero checks using if/else.
Practice handling if conditions to read a non-negative number, compute its square root with the sqrt function, and display results or an invalid input message.
In this coding exercise, read a floating number between 0 and 1, use ceil for numbers >=0.5 and floor for smaller values, and validate the input.
Explore nested if conditions to validate a 0 to 1 input, round up if >= 0.5 or round down else, and show invalid input for out-of-range values.
Write a program that reads the purchase amount and applies a 20% discount when the amount exceeds 500. Print the final price, or the original amount if no discount applies.
Write a C++ program that reads a number and prints 'too low', 'too high', or 'in range' whether it is below 10, above 50, or between 10 and 50.
Write a C++ program that prompts for a test score between 0 and 100 and classifies it as failing, passing, good, or excellent using nested ifs and multiple conditions.
Master the ternary operator as a compact, single-line alternative to if-else, using a condition, value if true, and value if false, such as determining even or odd with modulo.
Learn to use a ternary operator to assign pass or fail from a user score between 0 and 100, replacing a multi-line if-else.
Practice coding exercise #18 in c++ to determine voting eligibility using the ternary operator in a single line. Input age, assign result with condition ? : and print eligibility.
Practice using the ternary operator to classify a user-entered number as positive, negative, or zero, storing the result in a string and printing it to the terminal.
Explore how logical operators and or combine conditions to streamline if statements, replacing nested checks with concise code that determines work eligibility based on age.
Practice implementing a C++ program that uses the logical and operator to check if a user-entered number is divisible by both three and five using modulo. Print the result.
Practice coding with the or logical operator to decide movie eligibility: age above 13 or being accompanied by an adult, using an age input and a 0/1 adult flag.
Practice using logical operators in C++ to check if a number lies between 5 and 15, by using or and conditions and handling user input.
Learn how boolean flags improve readability and reduce errors in C++ if statements, annotating states. See how a passed quiz flag, set by an and condition, controls the final message.
Learn how to use a boolean flag to control continuation in C++ by handling a y or n input, updating the wants to continue flag, and displaying appropriate messages.
Learn to use a boolean is_even flag to check a number's parity with modulo and an if statement, then print whether the number is even or odd.
Explore the switch statement in C++ as a readable, efficient alternative to long if-else chains, with cases, break, and a default to handle all outcomes.
Learn to implement a C++ switch statement to perform addition, subtraction, multiplication, and division on two numbers, with input handling and division-by-zero checks.
Practice writing a C++ program that reads a traffic light color and prints stop, get ready to stop, go, or invalid color using a switch statement rather than multiple if-else.
Master for loops in C++ by using the initialization, condition, and increment components to iterate data and print sequences. Learn to print numbers 0 through 4 efficiently, avoiding manual repetition.
Practice for loops by printing even numbers from 1 to 10 with an if condition that checks remainder zero, and learn to find maximum or minimum values in a list.
Write a C++ program that sums numbers from 1 to 5 using a for loop, then use sum += i to show concise, efficient accumulation.
Use a for loop to compute the factorial of five by multiplying a running product, starting at 1 and updating factorial *= i from 1 to 5, yielding 120.
Learn to use for loops to print paired i and j values, where i increases and j decreases, under the conditions i less than five and j greater than zero.
Learn how a for loop updates two integers simultaneously using i += 2 and j decreases by one, and how and versus or conditions affect termination.
Learn how to use while loops in C++ by comparing them with for loops, initializing before the loop, updating inside, and printing numbers 1 to 5 while avoiding infinite loops.
Explore building a calculator using a while loop to sum user-entered numbers until zero signals completion, showing live accumulation and the limitations of for loops.
Build a countdown program in C++ using a while loop to print ten down to one and lift off, showing initialization, condition, and decrement.
Master the do while loop in C++ by learning that it executes the block at least once before checking the condition, with practical user input examples.
Practice a do while loop in C++ by building a password check that prompts until the correct password is entered, finishing with access granted.
Implement a C++ do-while loop that prompts to play again, accepts y or n in any case, and exits when the user says no.
Master nested loops in C++ by building a 5 by 5 multiplication table. The outer loop controls rows while the inner loop fills columns.
Explore printing a number pattern with nested loops in C++: an outer loop 1 to 5 and an inner loop 1 to i, printing j to form a triangle.
Master nested loops in C++ by printing a four times six rectangle of asterisks, using an outer loop for rows and an inner loop for columns.
Print a grid with three rows and four columns using nested loops, where the outer loop handles rows and the inner loop handles columns, displaying 1 to 4 per row.
Explore how functions create reusable blocks of code, declare inputs and outputs, and call them from main in C++, with examples of int and void functions.
Declare and define a void greet function with no inputs before main, call it from main to display a welcome message, keeping main clean and readable.
Learn how to implement and use a multiply function in C++, declare it before main and choose where to define it, handle two double inputs, and call it in main.
Explore how local variables live inside a function or block and disappear after execution, while global variables are defined outside functions and accessible by any function.
Learn how global variables defined outside functions are accessible from any function, with global number starting at 100 that increases by 50 in void function and updates in main.
Explore how global and local variables behave in c++ with scope resolution, using examples that show how to access a global variable from inside a function and print values.
Learn about local and global variables by implementing a global counter updated by an increment function called twice from main, with the counter value printed after each call.
Use the void add numbers function to read two inputs, compute their sum, and display it, illustrating local variable scope and its distinction from global scope.
Explore function declarations with default parameters in C++, where missing arguments use defaults and provided arguments override them, illustrated by a greet example with guest and Alice.
Explore a C++ function with a default discount parameter to compute price after discount; call with one or two arguments to see 90 or 80 from a 100 price.
Practice using default or optional parameters in a function that prints a star rectangle with nested loops; defaults are width five and height three, overridable with seven and four.
Explore how call by value copies the actual parameters into a function, keeping the original arguments unchanged even after internal modifications.
Demonstrate call by value in C++ by swapping two numbers within a function while proving the original values in main remain unchanged, using a temp variable.
Explore call by value in C++ as a function doubles a number from 15 to 30 while the original value remains unchanged in main, illustrating copy-based parameter passing.
Understand call by reference in C++ through swapping two numbers using memory addresses, and see how it differs from call by value that only changes a copy.
Implement a function that doubles a number and updates the original value in main via call by reference. Contrast it with call by value and show before and after results.
Practice call by reference in C++ by writing a void function that updates two numbers—adding ten to the first and doubling the second—and verify before and after results.
Discover how a template function in C++ allows one function to work with different data types using a placeholder t, with the compiler deducing int, float, double, or char.
Learn to swap two values using a template function, passed by reference, that changes the original variables across int, float, and string types, with compiler-deduced type T.
Explore how the continue keyword skips iterations in a for loop and prints odd numbers 1 to 10, skipping even numbers via a modulo test.
Explore the break keyword in C++ to exit loops when a condition is met, demonstrated with a while loop that reads numbers until minus one.
This lecture reviews continue and go-to keywords in a C++ program that reads user numbers, terminates on minus one, and flags negative values, while noting break as an alternative.
Learn how arrays store multiple elements in a single memory block in c++. Declare and initialize a five-element int array, then print its values with a for loop.
Declare and initialize a five-element integer array, then find its largest value with a for loop and a first-element max. Learn zero-based indexing and updating max as you compare.
Learn to read five numbers into a double array, accumulate their sum with a for loop, and compute the average by dividing the sum by five.
Discover how to use arrays with functions by printing all elements through a dedicated function that receives the array and its size from main.
Count even and odd numbers in an array by writing a function using pass by reference, then call it from main to iterate the array and print counts.
Learn how to write a C++ function that checks if a target number exists in an array, using a boolean search_element, a for loop, and prints whether it is found.
Declare and initialize a five-element integer array, print elements with a for loop and direct indexing, and manipulate elements by assignment and an index variable, including pre- and post-increment effects.
Explore static variables and arrays in C++, showing how a static array preserves a function’s count across calls, contrasts memory usage with regular arrays, and compares to call by reference.
Learn to declare and initialize a five-element int array with static variables to store game scores, update elements across function calls, and print the scoreboard.
Explore coding exercise #58 by using a static array of size three to store user input across function calls, and see how static variables preserve state and manage an index.
Learn to sort a C++ array in ascending order using the algorithm library’s sort, calculate size with sizeof, and sort either the full array or the first n elements.
Declare and define an array in C++ and sort it in ascending order. Learn to sort the first k elements or the last k elements by using the sort function.
Learn how to sort a C++ array in descending order using the sort function and the greater comparator from the algorithm library, including array size and printing results.
Declare and define an array, compute its size, and reverse it using the predefined reverse function from the algorithm library; print the array to verify the full or partial reversal.
Learn to insert one array at the beginning of another in C++, using a third array and for loops to copy elements, then print the combined result.
Learn how to insert one array at the beginning or at the end of another array, using examples that show the resulting merged sequences and alternative phrasing.
Learn to insert one array into the middle of another in C++ by constructing a combined array, calculating the middle index, and using loops to place elements.
Declare and print an array, then prevent unintended changes by using the constant keyword to create a constant array whose elements cannot be modified.
Explore two dimensional arrays by declaring a 3x3 integer matrix, and print it using nested loops where the outer loop counts rows and the inner loop counts columns.
Learn to implement two by two matrix addition in c++, declaring two by two matrices, summing them with a nested loop, and printing the resulting sum matrix.
Learn to work with a two dimensional array of three students and four subjects, using a nested loop to compute and print each student's average.
Explore multidimensional arrays beyond two dimensions by working with a three-dimensional array for departments, products, and months, and learn to initialize, store, and display sales data using nested loops.
Explore pointers in C++, understand how a pointer stores the memory address of a variable, and how dereferencing accesses the variable's value, with a simple example and future deeper exercises.
Master pointers and functions by doubling a variable's value through a pointer, passing the address, dereferencing, and printing x before and after it changes from 10 to 20 in C++.
Modify a variable using a pointer by passing its address to a function and dereferencing it to set 100. The lesson shows pointer manipulation versus call-by-reference for direct changes.
Demonstrates swapping two variables using a pointer-based function, showing how passing addresses enables in-place modification unlike call by value, and illustrating a void swap with a temp variable.
Learn to use pointers to access and print array elements in C++, initializing a five-element integer array, printing via pointer dereference and array syntax, and iterating with a for loop.
Explore how to access and print elements of a two-dimensional array using pointers, including pointer to the first row, dereferencing, and nested loops to index i and j.
Modify a single element in a two rows by three columns array with a pointer to the first row, then print using nested loops i and j.
Explore arrays of function pointers in C++ by defining add, subtract, multiply, and divide, calling them through a pointer array, and looping to print results.
Practice building an interactive C++ calculator using an array of function pointers, read two numbers from the user, select an operation (add, subtract, multiply, divide), and print the result.
Learn to process an integer array by passing a function pointer to process_array, which applies doubling or squaring to each element using a for loop.
Learn how to define arithmetic operations and pass a function pointer to a calculate function that applies add, subtract, multiply, or divide to two numbers.
Allocate memory dynamically for an array using a pointer, size it from user input, and fill it with user-provided elements. Then deallocate the memory with delete to manage resources.
Allocate a two-dimensional array dynamically in C++ by creating an array of row pointers, allocating each row with the specified columns, inputting elements, printing them, and freeing memory.
Explore how a pointer to a pointer (double pointer) can modify the value of x by updating the first pointer, and understand the address relationships involved.
Learn to access array elements using a double pointer in C++ by dereferencing a pointer to a pointer and iterating a for loop over a one dimensional int array.
Learn how type casting converts a float to an int in C++ using static_cast, showing 5.75 becomes 5 by default rounding down, with mentions of pointer typecasting.
Learn to use a void pointer to access a variable's value by applying typecasting, converting the void pointer to an int pointer, and dereferencing to print the integer.
Learn how to access a float variable via a void pointer by casting with static_cast, converting void* to float*, and dereferencing the memory location to read 3.14.
Learn to use a single void pointer to access int, float, and char via static_cast, and print their values.
Learn to write a C++ program using a void pointer to typecast and print values. Use a print value function with addresses, an i, f, c switch, and static cast.
Explore predefined c++ string functions and concept of strings, then practice coding exercises. Learn to include the string header to work with these functions and study them one by one.
Explore strings in C++: a data type representing characters enclosed in double quotes, and learn to obtain their length with the string.length() function, counting spaces and punctuation.
Learn how to append text to a string in C++ using the append function and the plus equal operator, with examples showing spacing and punctuation.
Learn to access string characters in c++ using zero-based indexing with operator[] and the at() function, illustrated with 'hello' and character positions from h to o.
Practice the C++ string insert function: provide the position and the string to insert, inserting into an original string at a zero-based index and observing how the text shifts.
Master the C++ string erase function by removing a specified length from a given position, seeing how seven characters from position five alter the string.
Learn how to use the replace function on a string in C++, covering the three arguments: start position, length, and replacement; replace five characters from position seven with universe.
Learn to extract a substring in C++ using the substr function. Copy five characters from position seven into a new string, leaving the original unchanged.
Demonstrate using the string clear function to empty a string, showing the before and after states of 'hello' and how the string becomes empty.
Learn how to reverse a C++ string using the reverse function with begin and end iterators, reversing the entire string from start to finish.
Learn how to sort a string in C++ with the sort function, using begin and end iterators, including string and algorithm headers, and apply it to arrays of strings.
Declare and print an array of strings, with fruits like apple, banana, cherry, and date, using a for loop; compute its size as memory divided by size of first element.
Sort an array of strings in C++ with the sort function, from the first element to the end, using size n to cover all elements in alphabetical order.
Modify a string array by replacing the second element (index 1) Paris with London, then print the updated cities using a for loop, demonstrating indexing and in place modification.
Explore why vectors offer more flexibility than fixed-size arrays by enabling dynamic resizing, adjusting initial size, and easier modifications through practical coding exercises.
Include the vector header, declare a vector of integers named numbers, use pushback to add values, and print them with a for loop.
Write a program that reads a user-defined count of numbers, stores them in a vector with push_back, and then displays the vector elements by iterating over them.
Calculate the sum of all numbers in a vector by iterating its elements with a for loop, accumulating in a running sum and printing the final result.
Find the maximum number in a vector using C++ by initializing max to the first element, iterating through the vector, and updating when a larger value appears, yielding 30.
Learn how to access elements in a vector of strings by zero-based indexing and print the first two names, such as Alice and Bob, in C++.
Reverse a vector in c++ by printing the original, then iterating from size minus one down to zero to display elements in reverse order.
Compute size of a vector with vector my vector size() and print it. Push back 100, then for loop to print elements, showing the size increase from 4 to 5.
Learn to remove even numbers from a vector in C++ by checking remainders and collecting odd numbers into a new vector, then print both vectors.
Declare a vector of integers, modify the second element (index 1) to 10, and print the updated vector with a for loop, illustrating direct element modification in C++.
Remove the last element of a vector with popback, then display the updated vector; push back two more numbers and compare its dynamic size to fixed-size arrays.
Declare a vector of integers, use clear() to remove all elements, and verify with size() that the vector is empty, illustrating c++ vector flexibility over arrays.
Learn to collect student scores into a vector, use a for loop to push back entries, compute the sum, and cast to double to calculate and print the average.
Learn to read multiple favorite colors in C++ by collecting them into a vector<string>, using getline to capture each color, pushing back, and printing all colors.
Write a C++ program that inputs numbers into a vector until -1, then checks with a for loop and a found flag if a given number exists, printing the result.
Define enum types as user defined data types with named integral constants to improve code readability, using days like Monday to Sunday and highlighting meaningful names.
Explore single type enumeration in C++ by declaring an enum of week days and printing the third element, Wednesday, as today with value two.
Explore multi-level enumeration by declaring hierarchical enums within enums to categorize transport options and vehicles. See how using meaningful names like bicycle and ship improves code readability over numeric codes.
Start a c++ enum from one by assigning the first element to one. The example uses a weekday enum (Mon, Tue, Wed) to show values 1 and 2.
Represent weather states with an enum in C++, map user input (zero, one, two) to sunny, rainy, or cloudy, and print condition-specific messages.
This lecture demonstrates combining enums with functions in c++, using a weather enum with sunny, rainy, and cloudy, and a weather_message function that uses a switch to print corresponding messages.
Write a C++ program that uses an enumeration for traffic light colors and a switch statement to print stop, get ready, or go, improving readability over numeric codes.
Define an enum of common error codes in C++, map input codes to messages with a switch, including success, file not found, and server error.
Create a C++ program that asks users to choose a payment method (cash, card, online) and prints a confirmation using an enum and a switch statement.
Define a temperature level enum with low, medium, and high; read input and use a switch to print low: wear a jacket, medium: enjoy the weather, or high: stay hydrated.
Explore implementing an enum for pizza sizes (small, medium, large) with custom prices, reading user input, and using a switch to print the price or an invalid size message.
Define an enum weather with sunny, rainy, cloudy, windy, and snowy, and map input 0–4 to these cases using a switch to output a corresponding activity.
define and use multiple enumerations in c++ by creating days and colors enums, assign friday and red, and print their corresponding indices to show meaningful naming improves readability.
Master C++ from the Ground Up!
This C++ Bootcamp is designed to take you from a complete beginner to a confident C++ programmer. Whether you are new to coding or transitioning from another language, this course provides a structured, hands-on approach to learning C++.
Key Features:
Comprehensive Coverage: Learn fundamental concepts, object-oriented programming, and advanced C++ techniques.
Hands-on Coding: Practice through exercises, real-world projects, and coding challenges.
Efficient Learning: Simplified explanations with practical examples for faster understanding.
Industry-Relevant Skills: Develop expertise in memory management, file handling, and error management.
What You Will Learn:
Basic Syntax & Control Flow: Variables, data types, operators, if conditions, and loops
Advanced Data Types: Enumerations (enum), unions, and structures (struct)
Functions & Modularity: Defining, calling, and passing functions
Classes & Object-Oriented Programming (OOP): Encapsulation, inheritance, and polymorphism
Exception Handling: Managing errors and unexpected behavior with try-catch blocks
File Handling: Reading from and writing to files for data persistence
Pointers & Memory Management: Dynamic allocation and deallocation
Who is this course for?
Beginners with no prior programming experience
Developers transitioning from another language
Students learning C++ for academic purposes
Professionals looking to strengthen C++ skills
Competitive programmers and coding enthusiasts
Engineers working on performance-critical applications
Anyone interested in game development or system programming
By the end of this bootcamp, you will have a strong foundation in C++ and be ready to tackle real-world programming challenges with confidence.