
Explore c++ programming from basics to advanced, covering data types, keywords, functions, operators, arrays, pointers, structures, and object oriented concepts like classes, inheritance, polymorphism, and encapsulation, with examples and questions.
Any C++ Program starts with main() function, Program should contain at least one function main() function is mandatory, In this program we also included header file <iostream> this file contains functions cin and cout, To use cin and cout in our program we should include this header file.
Commenting is always a good practice while writing a program, It is useful to describe the purpose of the program and why you have written particular group of code.
Learn how to declare integer variables, understand memory allocation of 4 bytes, differentiate unsigned and signed integers, and explore related types like short and long, with printing to the screen.
Declare a variable named grade of character data type and allocate one byte of memory. Initialize grade to 'B' and print the message grade is B from the variable grade.
Learn how to use the float data type in C++, assign values like 23.25, print results, and compare its memory size and precision with double and long double.
Learn how to read user input in C++ using cin to store values in variables and display them with cout, including prompts to make output easy to read.
Learn how to build a simple C++ program that converts gallons to liters by reading a floating-point gallons value and multiplying by 3.7854, then printing the result.
Learn to write a simple C++ program that adds two numbers by declaring a, b, and c, getting input, computing c = a + b, and printing the result.
Learn how to write a simple C++ program to swap two numbers by declaring int variables and using namespace std, printing values before and after swapping.
Write a C++ program that asks for the user’s name and age, stores them in variables, and prints the name and age with proper formatting.
Explore escape sequences in C++ and learn how to control output with newline and space characters, placing the cursor on new lines and formatting printed names and data.
Learn how to declare and initialize constants with the const keyword in C++, so values cannot be changed during a program, and explore defining constants with a define statement.
Learn to create a new line in c++ using define and escape sequences, and see how the preprocessor replaces the define to place the cursor on the next line.
Explore arithmetic, relational, logical, and bitwise operators in C++, with examples of plus, minus, multiply, divide, modulus, increment, and assignment operators.
Explore decision making in C++ by using if, else if, and else statements to control flow and print outcomes with cout; understand blocks, semicolons, and nested conditions.
Explore a C++ program that uses if statements to evaluate a user-entered number and print whether it is positive, negative, or zero, including single-line and multi-condition variants.
Learn to write a C++ program that finds the largest of three user-entered numbers using if-else comparisons to print the result.
Explore nested if statements to determine the greatest of three values using sequential conditional checks, understand the logic and syntax, and implement multiple valid approaches.
Explore loops in C++: for, while, and do-while, with examples that print a name five times and display numbers 1 to 100, illustrating initialization, condition, and increment.
Learners see how to write a for loop in C++ with initialization, condition, and increment, print values from 1 to 10, and include headers and a main program.
Learn to write a simple C++ program that reads a user-entered integer and prints its multiplication table from 1 to 10 using a for loop.
Learn how to use nested for loops to print all multiplication tables from 1 to 10, exploring inner and outer loop structure and how repeated iterations generate combined results.
Master the while loop by repeating a block while a condition holds and increment i each iteration. Practice printing the multiplication table up to ten and avoid infinite loops.
Demonstrates the do-while loop, showing how it executes the block at least once before testing the condition, unlike the while loop which checks first.
Learn to compute a factorial in C++ with a while loop by initializing factorial to 1, reading a number, multiplying by the number while it decreases, and printing the result.
Explain how the break statement exits a loop when a condition is met, illustrated by counting up to 200 and stopping at 50 so only 50 values are printed.
Explain the break and continue statements in C++ with while loops, showing how continue skips iterations and break exits loops to control program flow.
Explore switch statements, using cases, default, and break to handle user input, and build a simple calculator program with three chances.
Explore C++ functions from declaration to definition, including return types, parameters, and function signatures. Learn how to declare, define, and call functions alongside main and standard library helpers.
Learn to declare and implement a simple add function in C++, include header files, use a namespace, pass two numbers, call it from main, and print the result.
Declare and implement functions, call them from main, and return results; learn to use header files like cmath to access mathematical functions such as sqrt, and print outputs.
Explore arrays in c++ by understanding one-dimensional and multi-dimensional arrays, their contiguous memory locations, and how to declare and access elements using indices.
Learn how one dimensional arrays store consecutive elements in memory and access them with square brackets. Discover that each element occupies 4 bytes in a contiguous memory layout.
Explore one dimensional arrays in c++, using a for loop to declare, access, and print elements by index, and see how updating a value changes the subsequent outputs.
Learn to handle arrays in C++ by entering values, initializing elements, and using for loops to read and print numbers.
This lecture demonstrates printing array elements in C++ using indexing with i and square brackets, and adjusting the output format for readability.
Explore adding marks using one dimensional arrays by inputting the number of subjects, reading each subject's marks in a loop, calculating total, average, and percentage.
C++ is a general purpose programming language.C++ was developed by Bjarne Stroustrup at At&T Bell Labs
C++ Programming Language is used in various software developments and in even gaming. C++ is object oriented language.
This course teaches you everything about C++ starting with basic operations with examples to object oriented concepts, It covers all the topics in C++ from basics to most advanced topics, Every lesson is explained in details with example code.
Those who want strong knowledge or want to learn programming language can take this course.
This course is divided into three parts