
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Navigate to dev-c++ download via Google search, click a SourceForge link to start the download, then double-click to install dev-c++.
Learn to write your first c++ program by including iostream, using the std namespace, defining main, and printing hello world with cout and the << operator.
Understand executing a simple c++ program with or without using namespace std, using std::cout, and how omitting std leads to a 'cout not declared in this scope' error.
Learn how comment lines in C++ boost code readability, using single line comments with // and multi line comments with /* ... */, including examples of declaration and initialization.
Explore multi-line comments in C++, expressed between /* and */, and see an example with int salary = 2000 to illustrate declaring a variable to store employee salary.
Explore how variables serve as storage locations in C++ and how integer variables hold data, such as age. See how updating age from 14 to 17 demonstrates value modification.
Master variable naming rules by learning that names may contain letters, numbers, and underscores, must start with a letter or underscore, and cannot use language keywords such as int.
Explore literals in C++, including integer literals in decimal, octal, and hexadecimal forms, floating point and exponential literals, character and string literals, and escape sequences such as newline and tab.
Explore the fundamental data types of C plus plus, including integer, floating point, double, character, wide character, boolean, and void, with word size, range, and simple declaration examples.
Learn to declare integer, double, and character variables in C++, display them with cout, and format output with new lines and descriptive text.
Explore implicit type conversion in C++ by converting an int to a double and printing both values, then demonstrate converting a double to an int and observing the results.
Read a value at runtime and display the same value using cout with a variable. Enter an integer to see the output, e.g., 'the number is 12'.
Explore arithmetic operators in C and C++, including plus, minus, multiply, divide, and modulus, with unary forms and shorthand assignments, and compare pre- and post-increment behavior.
Explains relational operators as boolean expressions yielding true or false, covering less than, less than or equal to, greater than, greater than or equal to, equal to, and not equal to.
Explore how the three logical operators in C work: and, or, and not, including truth-table outcomes for binary expressions and the unary nature of not.
Explore bitwise operators in C and C++, including and, or, xor, ones complement, and shift operations, with 8421 representations and left and right shift examples.
Explore the if statement in c plus plus, study its conditional expression syntax, and see how true conditions execute a block of statements while false conditions skip it.
Learn to use the if-else statement by evaluating a condition, executing the true block, or transferring control to the else block when false, with examples like number equal to five.
Write a C++ program that reads a number into num, checks parity with num % 2 == 0, and prints whether the given number is even or odd.
Explore how nested ifelse works by placing an if inside another if; when condition one is true, the inner block runs if condition two is true, otherwise it does not.
Explore the else if ladder, a multi-way selection statement in C++, showing how conditions are evaluated in order and the corresponding code blocks execute, with examples using numbers.
Explains the C++ switch statement as a multi-way selection construct, covering syntax with switch(expression), case labels, break, and a default, plus practical examples and outputs.
Write a C++ program that reads a number and uses an else-if ladder to determine whether it is positive, zero, or negative, printing the corresponding message.
discover how to find the maximum of two integers in a C++ program by reading x and y, using if-else to assign max, and printing the result with example values.
Determine the largest of three numbers by reading three double variables and comparing them with if-else using >=, and print the largest among n1, n2, and n3.
Master repetition in C++ by using loops to execute a block of statements k times, covering for, while, and do while loop types.
Explore the for loop as a counter-controlled, entry-controlled construct in C++, and learn its syntax with initialization, conditional expression, and update, plus examples.
Explore while loop as an entry control structure that evaluates a condition before each iteration. Practice printing numbers 1 to 10 and summing nonnegative user inputs until a negative entry.
Explore the do-while loop as an exit control construct that executes the body first and repeats while true, unlike entry control loops, as shown by printing 1 to 10.
Use break statement in c++ to terminate a loop mid-execution when a condition is met. Example shows break; moving control out of a for loop when i equals 2.
Learn how the continue statement in C++ skips the current iteration inside a for loop and moves control to the next iteration, producing outputs 1, 2, 4, and 5.
Learn to write a C++ program that prints numbers from 1 to 10 using a for loop, outputs with cout, and control line breaks and spaces with endl and separators.
Learn to print numbers in reverse from 10 to 1 using a for loop in c++, initializing i to 10, decrementing each iteration, and printing i with a space.
Use a for loop to iterate from 100 to 150 and display only even numbers. Check each value with i % 2 == 0 and print evens separated by spaces.
Explore C++ functions, including standard library and user defined functions, with declarations, return types, and function bodies. Call a void display and a max among three numbers from main.
Explore calling function versus called function in C++, using a main function calling function one and a square function that returns a value, illustrating parameter passing and control transfer.
Implement a C++ program that prints the first n Fibonacci terms using a fib function and an a, b, c setup, driven by user input.
Develop a c++ program that generates all prime numbers between 1 and n by counting factors in a nested loop and displaying primes using a dedicated prime function.
Explain call by value implementation and distinguish actual parameters from formal parameters using an add function example. Demonstrate that the caller's variable remains unchanged after the function call.
Explore call-by-address in C++, where a function receives a variable’s address via a pointer parameter, updates the original value, and an example shows adding ten to n.
Explore recursion, where a function calls itself. See how factorial of n is computed by calling factorial of n minus one when n > 1, and returns 1 otherwise.
Master gcd computation with Euclid's algorithm implemented recursively in C++, using x and y parameters and x mod y to reach the base case.
Compute an exponent x to the y with a recursive exp function. Return one when y is zero, else multiply by x and recurse, illustrated by two cubed equals eight.
Define arrays in C++, observe contiguous memory storing elements from index zero to n-1, and note that omitting size lets the compiler count elements.
Learn to read and store four integers in a one-dimensional int array using a for loop, then access and display each element from index 0 to 3.
Write a C++ program to compute the average of array elements by summing them and dividing by the element count, using a dedicated average function and a for loop.
Apply linear search on a given array to locate a key element, report its index, and learn that the time complexity is O(n) as you scan from the first element.
Learn how to implement a C++ program that reads an array of numbers, tracks the smallest and largest values using a for loop, and prints the results.
Calculate array addresses using base plus word size times (index minus lower bound); in a six-element int array with base 1000 and lower bound 0, max[4] is at 1008.
Explore how two dimensional arrays in C++ store data as matrices, learn row and column size syntax, and follow a row wise initialization example of a 2 by 4 array.
Declare a two by four matrix, use nested loops to fill each row and column, and print elements with cout to display the two dimensional array.
Learn how to compute and display the transpose of a 3x3 matrix using nested for loops, swapping i and j to print a[j][i].
Learn to compute the trace of a matrix by summing its diagonal elements, illustrated with a 3x3 example and the general a11 + a22 + a33 formula.
Explore the fundamentals of C++ strings, viewing strings as null-terminated 1D character arrays, with memory implications, input/output, and core functions like strcpy, strcat, strlen, and strcmp.
Learn how a pointer in C++ stores the memory address of another variable. Use the star operator to access the value pointed to by the pointer and display the address.
Learn how to change the value pointed to by a pointer by dereferencing and assigning a new value, using a and its pointer to turn 10 into 5.
Master how to access array content using pointers by pointing a pointer to the array base, using the address of and dereference operators, and performing pointer arithmetic.
Learn to read elements into an array with a pointer, allocate memory, and display them using cout, accessing a[i] via pointer arithmetic: *p + i, with cin for input.
Show how two pointers in C++ can point to a single array location by setting one to the base address and copying its pointer value to another, without copying data.
Explore how pointer increment and dereferencing work in C++ with an int array, showing how p++ moves to the next element and yields the value 2.
Explore pointer addition and subtraction in C++, using an integer array to show the base address and how p2 minus p1 yields element distance via size of int.
Explore how an array of pointers can reference multiple variables, dereference to access their values, and understand how pointer arrays map to distinct addresses in memory.
Learn to implement an array of pointers to three arrays and iterate to print their contents, such as 1 2 3 4 5, 0 2 4 6 8.
Declare a pointer to a pointer using a double asterisk, assign it to the address of another pointer, and dereference it to access x's value.
A constant pointer points to a fixed address and can modify the value at that address, while attempting to change the pointer’s address is invalid; learn its syntax and usage.
Explore the concept of pointer to constants in C++, showing how a pointer can change its address while its pointed value remains immutable, and compare it with constant pointers.
Explore the constant pointer to a constant, a blend of constant pointer and pointer to a constant. It disallows changing the address and the value it points to.
Explore static memory allocation and dynamic memory allocation in c++, distinguishing compile time vs runtime, and learn to use new and delete to allocate and deallocate memory.
Explore object creation in C++ by allocating memory with new, using pointers, and pointing an int pointer to a newly allocated integer memory location.
Explore object destruction by using the delete function to deallocate memory pointed to by pointers, including single integers and arrays, and observe how access is prevented after deletion.
Learn to allocate dynamic arrays in C++ using new, creating contiguous blocks of memory for a given number of objects, including runtime size with int arrays.
Understand how a dangling pointer arises when a pointer references memory after it has been deallocated by delete, making subsequent access through another pointer illegal.
Identify memory leak problems arising from allocating memory with new and forgetting to deallocate with delete, demonstrated when a is reassigned to a new int[5] without deleting the previous array.
Explore how C++ uses a class as a blueprint for objects, defines data members and member functions, and creates room objects to compute area and volume.
Explore how C++ constructors initialize objects automatically, with the constructor name matching the class and default constructors setting values, as shown by a Wall example.
demonstrates a room class with length, breadth, height and methods to compute area and volume, then creates an object, initializes members, and optionally reads runtime input with cout and cin.
Learn how to implement a default constructor in C++ that takes no parameters, initializes x, and displays it with show_data, showing the constructor runs automatically when an object is created.
Learn how to write a parameterized constructor in C++ that initializes x with input values, using this pointer. It includes multiple parameters and displaying x and y.
Show how to implement a copy constructor that creates a new object from an existing one by copying its reference. The numbers class initializes x to 20 and demonstrates copies.
Pass objects as parameters to a function by using a student class, computing the average of two students' marks, and optionally returning the result to the caller.
Learn how to declare and use nested classes in C++, where an inner class sits inside an outer class and is instantiated with the outer class name.
Explore empty classes in C++, declare classes with no data members or member functions, and measure their size using the size of operator, revealing a one-byte footprint.
Learn how to implement a friend function in c++, declare it inside a class and define it outside to support data encapsulation, using a print function template as an example.
Demonstrate data encapsulation with a friend function in C++ by converting kilometers to meters, using Distance class with private kilometers and meters and a friend function defined outside the class.
Explore how a friend class in c++ can access private and protected members of another class, demonstrated by class a and class b where b is declared as a friend.
Explain how a class derives properties from another class in object oriented programming, defining parent (base/super) and child (subclass/derived) classes, and highlight inheritance's role in code reuse.
Empower learners with industry-aligned training that bridges academia and real-world skills through partnerships with educational institutions and tech giants, driving lifelong learning for tomorrow's leaders.
Unlock the Power of Programming with Our Comprehensive C++ Course
Are you ready to embark on a journey into the exciting world of programming? Look no further! Join our top-rated C++ course on Udemy and gain a solid foundation in one of the most versatile and powerful programming languages.
The Course covers following topics:
Basic Syntax and Concepts: Students will learn about variables, data types, operators, and basic input/output operations.
Control Structures: This section covers conditional statements (if, else if, else) and loops (while, for) to help students understand how to control the flow of their programs.
Functions: Students will learn to create and use functions, explore function parameters, return values, and understand function overloading.
Arrays and Strings: This section will cover the creation, manipulation, and traversal of arrays and strings.
Object-Oriented Programming (OOP): Students will delve into the core principles of OOP, including classes, objects, inheritance, polymorphism, and encapsulation.
Pointers and References: Understanding pointers and references is crucial in this course. Students will learn how to use them effectively and avoid common pitfalls.
Dynamic Memory Allocation: This section will cover memory management techniques using dynamic memory allocation and deallocation.
File Handling: Students will learn how to read from and write to files, enabling them to work with external data.
Course Highlights:
From Zero to Hero: Whether you're an absolute beginner or looking to enhance your programming skills, this course caters to all levels of experience. We start with the basics and gradually guide you through more advanced concepts.
Versatile Applications: C plus plus is a programming language used in a wide range of applications, from software development to game design and system programming. By mastering C plus plus, you're opening doors to endless opportunities.
Concept Clarity: Our expert instructor breaks down complex topics into easy-to-understand explanations. You'll grasp fundamental programming concepts, object-oriented principles, memory management, and more.
Hands-On Experience: Learning by doing is the key to mastery. With practical coding exercises and real-world projects, you'll apply what you've learned and build a portfolio to showcase your skills.
Designed for Success: This course is meticulously structured to ensure steady progress. Clear explanations, code examples, and interactive quizzes will keep you engaged and motivated throughout your learning journey.
Practical Tools: You'll set up your coding environment and gain proficiency in using C plus plus compilers, integrated development environments (IDEs), and other essential programming tools.
Certification and Beyond: Upon completion, you'll receive a certificate of achievement. This certification not only validates your skills but also enhances your resume, making you stand out in the competitive tech industry.
Lifetime Access: Learning is a continuous process. Enjoy lifetime access to the course materials, allowing you to revisit lessons, catch up on updates, and continue your learning at your own pace.
Expert Support: Have questions or need clarification? Our dedicated support team is here to assist you every step of the way.
Who Can Benefit?
Aspiring Programmers: Start your coding journey with a solid foundation in C plus plus.
Game Development Enthusiasts: Master C plus plus to create high-performance, captivating games.
Students and Learners: Complement your studies with practical programming skills.
Career Switchers: Add C plus plus to your skill set and enhance your employability.
Tech Explorers: Dive into the world of software development and innovation.
Ready to take your programming skills to the next level? Enroll in our C plus plus course today and unlock a world of coding possibilities!
Enroll now to secure your spot and begin your exciting coding adventure.