
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Declare and print an array, then prevent unintended changes by using the constant keyword to create a constant array whose elements cannot be modified.
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.
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.
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 to append text to a string in C++ using the append function and the plus equal operator, with examples showing spacing and punctuation.
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.
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.
Demonstrate using the string clear function to empty a string, showing the before and after states of 'hello' and how the string becomes empty.
Explore why vectors offer more flexibility than fixed-size arrays by enabling dynamic resizing, adjusting initial size, and easier modifications through practical coding exercises.
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.
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.
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.
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.