Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
108 C++ Programming Coding Practices for Absolute Beginners
Rating: 4.1 out of 5(51 ratings)
13,287 students

108 C++ Programming Coding Practices for Absolute Beginners

Master C++ Faster | Improve your C++ programming skill with 108 hands-on coding practices and real-world projects.
Last updated 3/2026
English

What you'll learn

  • Level up your C++ programming skill with over 100+ beginners best practices
  • Understanding local and global variable
  • How to accept strings from Users
  • How to add 2 Numbers
  • How to use math operators
  • How to add n Numbers
  • How to find Even and Odd Numbers
  • How to add digits from user
  • How to find Greatest of three Numbers
  • How to swap numbers using variables
  • How to calculate the percentage
  • How to check a Leap Year
  • And lots more...

Course content

1 section107 lectures10h 29m total length
  • Practice 1. Hello World3:01

    Learn to build your first C++ project by printing hello world using the input-output stream, using namespace std, and the main function that returns zero.

  • Practice 2. Use of Variables4:55

    Learn to declare and initialize variables in C++, using int, float, double, char, and string. See how x and y form z, print results with the output stream.

  • Ask Questions, Get Support & Achieve Your Dream!0:49
  • Practice 3. Understanding local and global variable5:35

    Practice 3 demonstrates using local and global variables in C++ by building a simple program within the main function that adds values and explains variable scope and precedence.

  • Practice 4. User Input5:41

    Learn to build a simple C++ user input system for absolute beginners, using cin to read numbers into int variables and cout to print results.

  • Practice 5. How to accept strings from Users3:23

    Learn to accept string input from users in a C++ program by declaring a 200-character buffer, reading with getline, and echoing the entered text.

  • Practice 6. How to add 2 Numbers5:00

    Learn to build a simple C++ program that adds two numbers by initializing int x, y, and sum, prompting to insert first and second numbers, and displaying the result.

  • Practice 7. How to use maths operators8:29

    Learn to perform add, subtract, multiply, and divide in C++ using variables x and y, compute sum, product, difference, modulus, and float division with cin and cout.

  • Practice 8. How to add n Numbers7:06

    Learn to build a C++ program that adds n numbers within a user defined range using a for loop, initialize sum to zero, read inputs, and print the result.

  • Practice 9. How to use if Statement3:28

    Master the if statement in C++ by defining x and checking if x is greater than 35, printing 'the value of x is above expected result' and 'you inserted x'.

  • Practice 10. How use Nested if Statement3:55

    Demonstrate nested if statements in c++ by initializing x and y, checking x==80 and y==52, and printing results with cout when conditions are met.

  • Practice 11. How to use if else Statement4:41

    Master the if-else statement in C++ by using conditions to guide user feedback, as shown with examples like password checks and input validation for an ATM scenario.

  • Practice 12. How to use else if Statement7:49

    Explore if else if statements in c++ by building a simple program that reads a student's mark and assigns a letter grade based on ranges.

  • Practice 13. How to use switch Statement6:21

    Practice 13 demonstrates using the switch statement in C++ by building a project that reads a grade from A to F and handles cases with a default for invalid input.

  • Practice 14. Nested switch Statement3:54

    Demonstrates nested switch statements in C++, using x = 87 and y = 40, with a switch on x containing a switch on y that prints first and second cases.

  • Practice 15. How to use while Loop3:00

    Learn how to implement a while loop in c++ by initializing x to 10, looping while x < 20, incrementing x, and printing each value with cout.

  • Practice 16. do while loop2:52

    Demonstrate a do while loop in C++, starting with x=1, printing and incrementing until x reaches 20, and compare it with a while loop for beginners.

  • Practice 17. How to use for loop2:48

    Learn to use for loops in C++, building a simple project that prints values from 1 to 20 and compares with while and do while loops.

  • Practice 18. Prime Numbers4:04

    Initialize x and y, run nested for loops to print prime numbers from 2 to 100 in C++, using modulus checks and break to identify primes with cout.

  • Practice 19. Area of a Triangle4:54

    Build a simple C++ project to calculate the area of a triangle from user input height and base using the formula base times height divided by two.

  • Practice 20. How to find Even and Odd Numbers3:28

    Build a C++ program that detects even and odd numbers using user input and the modulus operator. Use an if-else construct with x % 2 == 0 to classify numbers.

  • Practice 21. How to add digits from user4:36

    Learn to read a number from the user and sum its digits using modulo ten and division by ten in a do while loop, then display the result.

  • Practice 22. How to find Greatest of three Numbers6:42

    Build a simple c++ program that reads three numbers, uses if statements to determine the greatest, and prints which value is the greatest.

  • Practice 23. How to swap numbers using variables5:13

    Learn to swap numbers in c plus plus using three variables x, y, and z by requesting user input and showing numbers before and after swapping.

  • Practice 24. How to swap Numbers using 2 variables4:23

    Swap two numbers using two variables in c++ by x=x+y; y=x-y; x=x-y, with before and after demonstrations.

  • Practice 25. How to calculate the percentage6:37

    Demonstrates a seven-subject C++ exercise that inputs marks, sums them, and computes the percentage using a float, with the total set to 800, and prints the result.

  • Practice 26. How to calculate Gross Salary3:59

    Learn to build a simple C++ program that calculates gross salary from a user's basic salary using input and output streams, with variables and arithmetic operations.

  • Practice 27. How to calculate Simple Interest5:51

    Build a simple interest calculator in C++ by querying principal amount, rate, and period, using cin and cout, and computing principal times rate times period divided by 100.

  • Practice 28. How to check a Leap Year4:03

    Enter a year and determine if it is a leap year in C++ using an int year variable, user input, and if (year % 4 == 0) to decide.

  • Practice 29. How to get HCF using Recursive Function6:36

    Compute the highest common factor using a recursive function in C++. Define HCF(x, y), read two integers, and print the HCF of x and y.

  • Practice 30. How to calculate the LCM6:58

    Learn to implement a simple C++ program to calculate the lowest common multiple of two numbers using input prompts, modulus checks, and a loop with break to stop repetition.

  • Practice 31. How to calculate LCM and HCF9:02

    Create a simple C++ project that calculates hcf and lcm of two numbers, using a function outside main, with long variables, and printing both results.

  • Practice 32. How to get Factorial of nCr and nPr13:04

    Learn to compute factorials and implement functions for ncr and npr, where c stands for combinations and p for permutations, using standard factorial formulas.

  • Practice 33. How to reverse numbers4:16

    Practice 33 demonstrates reversing a user-entered number in C++ by using a while loop, modulo ten, and a running reverse variable with input and output streams.

  • Practice 34. How to reverse arrays of Numbers5:42

    Learn to reverse an array of numbers in C++ by collecting a user-defined range into an array and printing the elements in reverse order using for loops.

  • Practice 35. How to check for a Palindrome5:48

    Create a simple C++ palindrome checker that reverses digits with a rev variable for positive numbers, then compares the reversed value to the original number.

  • Practice 36. How to generate Prime Numbers4:50

    Develop a simple c++ prime number checker by prompting the user for a number. Iterate from 1 to that number, counting divisors, and declare prime when the count equals two.

  • Practice 37. List of Prime Numbers6:59

    Learn to list prime numbers up to a chosen limit in C++ by implementing a list_prime function, testing divisibility from 2 to n-1, and printing found primes.

  • Practice 38. How to check for Armstrong Numbers6:12

    Learn to check Armstrong numbers in C++ by summing the cubes of digits and comparing to the original number using a while loop.

  • Practice 39. How to Generate Armstrong Numbers7:07

    Develop a simple C++ project to generate Armstrong numbers within a user-defined range, using for and while loops, modulo operations, and digit-cube sum to identify Armstrong values.

  • Practice 40. Calculate Factorial3:54

    Write a simple c++ program that calculates factorials using a for loop, prompts the user for a number, and prints the factorial result.

  • Practice 41. How to calculate Factorial using Recursive function4:48

    Compute factorials in C++ using a recursive function fact with a base case of 1 and a recursive case n * fact(n-1); read input in main and print the result.

  • Practice 42. How to create a Fibonacci Series6:04

    Learn to generate a Fibonacci series in C++ with a non-recursive approach using a for loop and user input. The next lecture adds a recursive function.

  • Practice 43. Fibonacci Series using Recursive Function6:11

    Learn to implement a recursive Fibonacci function in C++ and print a Fibonacci series using a for loop that prompts for the number of terms and displays the results.

  • Practice 44. Mathematical Functions7:07

    Explore c++ mathematical functions using the cmath header, applying sin, log, abs, floor, sqrt, and pow to variables like x, y, a, and b.

  • Practice 45. How to generate Random Numbers7:31

    Learn to generate random numbers in C++ by including the standard library, reading a user-defined range and maximum value, and printing results with a for loop and cout.

  • Practice 46. How to convert from Binary to Hexadecimal5:20

    Practice converting binary to hexadecimal in a C++ program by reading binary input, using modulus and division in a loop, and printing the hexadecimal result.

  • Practice 47. How to convert from Binary to Octal4:17

    Convert binary to octal with a simple C++ program. Use user input, a while loop, modulo, and division to compute and print the octal equivalent.

  • Practice 48. How to convert from Binary to Decimal4:40

    Learn to convert binary input to its decimal equivalent in a C++ program. Use a while loop, modulus, and division to compute and print the result.

  • Practice 49. How to convert from Decimal to Octal4:27

    Convert decimal numbers to octal in a C++ program by using a while loop, modulus, and division by eight, accepting decimal input, then print the octal result.

  • Practice 50. How to convert from Decimal to Binary3:56

    Develop a simple C++ program that converts a decimal input to binary using a while loop, modulus 2, and a running binary value, then print the binary equivalent.

  • Practice 51. How to convert from Decimal to Bitwise6:10

    Convert a decimal input to its binary bitwise representation in C++ by iterating with a for loop, applying right shift, and printing each bit conditionally.

  • Practice 52. How to find first and last number in an Array6:23

    Learn how to implement a C++ program that reads n numbers into an array and prints the first and last elements using array indices and a for loop.

  • Practice 53. How to pass Arrays to Functions7:29

    learn how to pass arrays to functions in c++, compute the average of an array with a function, and pass the array and its size to print the result.

  • Practice 54. How to find maximum element in Array8:20

    Learn to write a C++ program that reads array elements, iterates with a for loop, identifies the maximum value and its position, and prints the result.

  • Practice 55. How to find the minimum element in an Array6:58

    Discover how to find the minimum element in an array in c++ by reading elements, iterating with a for loop, and tracking the minimum value and its position.

  • Practice 56. How to Reverse Array Elements7:26

    Learn how to reverse array elements in C++ by building a simple project that reads an array range and uses for loops to reverse and print the array.

  • Practice 57. How to insert a new element into an Array9:47

    Insert a new element into a chosen position in a C++ array by shifting elements to the right, after setting the range and printing the updated array.

  • Practice 58. How to delete an Element in Array8:14

    Learn how to delete an element from an array in C++ by inputting elements, selecting a position, and shifting subsequent elements.

  • Practice 59. How to Merge 2 Arrays19:12

    Learn to merge two arrays in c++ by implementing a merge function, handling input, and printing the merged result using nested if logic and for loops.

  • Practice 60. How to add two matrices11:00

    Learn to add two matrices in C++ by inputting rows and columns, filling two matrices, and computing their sum with nested for loops, then printing the result.

  • Practice 61. How to subtract two Matrices10:13

    Learn to subtract two matrices in c++ by inputting rows and columns, filling two matrices, performing element-wise subtraction, and printing the result.

  • Practice 62. How to Transpose a Matrix8:03

    Learn how to transpose a matrix in C++ by interchanging rows and columns, collecting matrix input from the user, and printing the transposed result.

  • Practice 63. How to multiply 2 matrices17:31

    practice 63 shows how to multiply two matrices in C++, by prompting for rows and columns, inputting matrices, validating dimensions, performing multiplication with nested loops, and printing the result.

  • Practice 64. Simple String Format3:26

    Learn simple string formatting in C++ by creating a char array large enough for the text and assigning hello world. Print the string using cout to display hello world.

  • Practice 65. How to check for Length of String using for loop3:31

    Learn to check a string's length with a for loop in C++. The lesson shows initializing counters, iterating through characters until the null terminator, and printing the length.

  • Practice 66. How to check for length of String using function4:03

    learn how to check string length in c++ by using a function from the c string library, including input handling and printing the result.

  • Practice 67. How to compare Strings using for loop7:59

    Learn how to compare two strings in C++ using a for loop, with input prompts, a flag to track equality, and final output showing equal or not equal.

  • Practice 68. How to compare two Strings using Function4:21

    Learn to compare two strings in C++ with the strcmp function, including the string header, declaring char arrays, reading input, and checking for equality when strcmp returns zero.

  • Practice 69. How to copy Strings4:24

    Learn how to copy strings in C++ using a for loop, initializing two 100-element char arrays, taking user input, copying from one to the other, and displaying the copied string.

  • Practice 70. How to copy strings using strcpy3:03

    Learn to copy strings in c++ with strcpy by using two 100-character buffers, including the string header, reading input, and printing the copied result.

  • Practice 71. How to make concatenation using a for loop6:28

    practice concatenating two input strings with a for loop in c++, by reading strings, iterating over their lengths, and producing a joined result.

  • Practice 72. How to concatenation using strcat3:32

    Learn to concatenate two strings in C++ using strcat, including the string header, read two inputs, append one string to the other, and print the result.

  • Practice 73. How to Reverse a string using while loop4:31

    Learn how to reverse a string in C++ with a while loop by swapping characters from the ends toward the center, using the string header and user input.

  • Practice 74. How to Reverse a String using strrev2:41

    Learn how to reverse a string in C++ using the strrev function, including header setup, input, calling the function, and printing the reversed string.

  • Practice 77. How to convert from Uppercase to Lowercase5:40

    Convert uppercase to lowercase in c++ using a while loop, first without a function, then via a case_lower function that processes a string and prints the transformed result.

  • Practice 78. How to convert from Uppercase to Lowercase using strlwr4:08

    learn how to convert an uppercase string to lowercase in c++ using the strlwr function, including input handling, string usage, and displaying the lowered result.

  • Practice 79. How to convert from Uppercase to Lowercase using while loop5:01

    Learn to convert lowercase to uppercase in c++ using a while loop with a case_upper function that takes a char string and outputs the uppercase result.

  • Practice 80. How to convert from Lowercase to Uppercase using strupr2:57

    Learn to convert a lowercase string to uppercase in C++ using the strupr function, including the string header and reading input into a char array, then printing the result.

  • Practice 82. How to find the frequency occurrence of a Character6:28

    Learn to compute the frequency of a character in a string using c-style strings, getline, and a for loop to count occurrences.

  • Practice 83. How to check Vowels and Consonants5:27

    Learn how to check vowels and consonants in C++ using if statements, handling lowercase and uppercase vowels, and printing results based on user input.

  • Practice 84. How to get number of Vowels, Consonants, Digits and Whitespaces12:53

    Count vowels, consonants, digits, and whitespaces in a string with a simple C++ program using a for loop and getline input.

  • Practice 85. How to search for an Element in an Array9:41

    Explore a simple C++ array search using a for loop to gather elements and a while loop with a mid index to locate and report the element's position.

  • Practice 86. How to check for an Element in an Array using Recursive function13:18

    Learn to search for an array element with a recursive function in C++. Build a function that returns whether the value is found within given indices.

  • Practice 87. How to sort Array using Bubble8:42

    Implement bubble sort in C++ to sort an array: read elements, perform nested loops, swap when needed, and print the sorted array.

  • Practice 88. How to sort Arrays using Insertion6:37

    Learn to implement insertion sort in C++ to sort an array, collect range and elements with for loops and while loops, and print the sorted results.

  • Practice 89. How to sort Arrays using Selection method7:05

    This lecture builds a simple C++ project to sort an array using selection sort, with input prompts, nested loops, and printing the sorted results.

  • Practice 90. How to call by Value4:51

    Demonstrate call by value in C++ by building a two-number addition program with a function that returns the sum and prints the result.

  • Practice 91. How to call by Reference5:25

    Learn how to swap two integers by reference in C++ using a void ref_swap function, passing x and y by reference and updating values in main.

  • Practice 92. How to call by Pointer5:15

    Learn to implement call by pointer in C++ with a swap function that uses addresses of x and y to exchange values, showing before and after results.

  • Practice 93. How to Write to a file7:58

    Write to a text file in C++ using fstream. Open an output file stream, write content, and close the file.

  • Practice 94. How to Read from a file7:13

    Learn to read text from a file in c++ by using ifstream, including fstream, and printing data with a for loop while handling file paths.

  • Practice 95. How to add 2 Numbers using function4:02

    learn to add two numbers in C++ by creating an addition function that takes x and y, returns their sum, and prints the result.

  • Practice 96. How to subtract two Numbers using function4:13

    define a C++ function that takes two ints and returns their difference, then read two numbers in main, call the function, and print the result.

  • Practice 97. How to create Classes4:45

    Learn to create a simple C++ class for a rectangle that calculates area, with public members for length and breadth, and perform the area calculation using the class.

  • Practice 98. How to Pass Argument to Function5:48

    Learn how to pass arguments to a C++ function, use default values, and see how provided arguments overwrite defaults with practical examples of characters and counts.

  • Practice 99. How to use inline function3:43

    Examine inline functions in c++, showing how a function call is replaced by the actual code and how to implement and use a simple addition function in main.

  • Practice 100. How to check length of string using Pointer5:07

    Calculate the length of a string in C++ by implementing a pointer-based function outside the main function, using a while loop to traverse characters and print the computed length.

  • Practice 101. How to create a Pyramid pattern3:46

    Create a pyramid pattern in C++ by prompting for the number of rows and using nested for loops with cout and endl to print spaces and the design character.

  • Practice 102. How to create a Right Angled Triangle2:55

    Design a right angled triangle pattern in C++ using nested for loops to print rows based on user input.

  • Practice 103. How to a Diamond pattern7:18

    Learn to print a diamond pattern in c++ by prompting for rows, initializing variables, and using nested loops to build the upper and lower halves of the diamond.

  • Practice 104. How to create a Right Angle Triangle pattern2:47

    Learn to create a numeric right angle triangle pattern in C++ by reading the number of rows from input and printing a grid of numbers using nested for loops.

  • Practice 105. How to create Alphabet pattern4:10

    Design an alphabet right-angle triangle pattern in C++ by printing uppercase letters from A to a chosen end character using nested for loops. User input determines last letter.

  • Practice 106. How to create a Pascal Triangle pattern5:15

    Design a Pascal's triangle pattern in C++ by prompting for rows and using nested loops with conditional logic to compute and print the triangle.

  • Practice 107. How create a Floyd_s Triangle3:29

    Create a simple C++ program to generate Floyd's triangle by initializing x, y, z and n, requesting rows, and using nested for loops to print and increment consecutive numbers.

  • Practice 108. How to create Numeric Pyramid pattern7:07

    Learn to create a numeric pyramid pattern in C++ using for and while loops, cout, and user input to print rows of numbers.

  • Congratulations! Never Stop Learning...0:15

Requirements

  • This courses requires the basics of C++ programming knowledge
  • A computer (Windows/Mac/Linux)

Description

Welcome to Practical C++ Programming Practices (100+ Common Projects)! Learning C++ programming language and understanding C++ programming language are two different things. Almost every student enjoy learning C++ programming language. But, only a few number of these students actually understand C++ programming language afterwards. This is where the remaining students are left behind and kept wandering from one course to another over the internet to get the best knowledge on understanding C++ programming language with cups of coffee on their table everyday.

Are you a beginner looking to master C++ programming through practical projects? “108 C++ Programming Practices/Common Projects to Improve Your Coding Skill” is the perfect course for you! This comprehensive course offers a hands-on approach to learning C++, designed to elevate your coding skills from the basics to advanced concepts.

What You Will Learn:

  • Getting Started:

    • How to write “Hello World” in C++

    • Accepting input from users

    • Summing two integers from user input

  • Mathematical Operations:

    • Building a Simple Interest Calculator

    • Multiplying float numbers

    • Finding ASCII values

    • Getting quotient and remainder

    • Adding complex numbers

    • Calculating the sum of digit numbers

  • Geometry and Patterns:

    • Creating Floyd’s Triangle

    • Calculating the area of a circle, rectangle, square, and triangle

    • Calculating the volume of a cube, cylinder, and sphere

    • Generating random numbers

  • Real-World Applications:

    • Calculating gross salary and percentages

    • Writing programs to shut down the computer, get an IP address, and handle date and time

  • Conditional Statements:

    • Detecting even and odd numbers, vowels and consonants, and the greatest of three numbers

    • Finding roots of quadratic equations and detecting leap years

    • Displaying student grades

  • Loops and Functions:

    • Summing a given number

    • Calculating factorials, creating multiplication tables, and generating Fibonacci sequences

  • String and Array Manipulation:

    • Reversing numbers and strings, checking for palindromes, and creating prime numbers

    • Calculating HCF and LCM, detecting and generating Armstrong numbers

    • Creating various patterns like half pyramids, full pyramids, inverted half pyramids, and Pascal’s triangle

  • Data Structures:

    • Using structures and unions to handle complex data

    • Creating and manipulating multidimensional arrays

  • File Handling:

    • Writing to, reading from, copying, and deleting files

  • Conversions and Bitwise Operations:

    • Converting between binary, decimal, octal, and hexadecimal formats

    • Building binary patterns

  • Advanced Patterns and Projects:

    • Creating diamond patterns, star hash pyramids, nested star hash pyramids, alphanumeric patterns, and numeric diamond patterns

    • Building simple calculators and more

Why Enroll?

This course offers 108 practical projects that cover a wide range of C++ programming concepts, making it perfect for beginners who want to improve their coding skills. Each project is designed to provide a hands-on learning experience, helping you to understand and apply C++ programming in real-world scenarios.

Learn and practice C++ programming through 108 real-world projects. This course covers:

  • Writing “Hello World” in C++

  • Accepting user input and summing integers

  • Building calculators, including Simple Interest and Gross Salary Calculators

  • Multiplying float numbers and finding ASCII values

  • Swapping numbers and strings using various methods

  • Adding complex numbers and calculating sums of digits

  • Creating geometric shapes and patterns, including Floyd’s Triangle, pyramids, and diamonds

  • Generating random numbers and calculating percentages

  • Developing programs for system utilities, such as shutting down the computer and getting IP addresses

  • Implementing mathematical algorithms like detecting even/odd numbers, prime numbers, and solving quadratic equations

  • Creating sequences like Fibonacci and Pascal’s Triangle

  • Manipulating arrays and strings, including sorting, reversing, and finding lengths

  • Performing matrix operations: addition, subtraction, multiplication, and transposition

  • Handling files: writing, reading, copying, and deleting

  • Converting between different numerical bases (binary, decimal, octal, hexadecimal)

  • Exploring advanced structures and unions for managing complex data

  • Implementing best practices for efficient and clean C++ programming

Elevate your C++ skills with comprehensive exercises designed to take you from beginner to advanced coding proficiency. Enroll now and start building your C++ expertise through practical, hands-on projects!

By the end of this course, you will have a solid understanding of C++ programming and the ability to build various applications and solve complex problems with confidence. Join us and take the first step towards becoming a proficient C++ programmer!

100+ C++ programming best practices for absolute beginner is a comprehensive and concise guide with over 10 hours of content that is designed to pick up every interested student from the state of “zero-knowledge” to a state of “Hero-knowledge” in C++ programming with lots of practical C++ projects.

Why Must I Take This Course And What Benefit Is It To ME As A C++ Programmer?

This is the only course on the internet that will help you to become a certified and successful programmer with an in-depth knowledge of the entire aspect of C++ programming and prepare you with the required skills necessary to build you to face job interviews and get employed as a full stack Software developer.


Emenwa Global instructors are industry experts with years of practical, real-world experience building software at industry leading companies. They are sharing everything they know to teach thousands of students around the world, just like you, the most in-demand technical and non-technical skills (which are commonly overlooked) in the most efficient way so that you can take control of your life and unlock endless exciting new career opportunities in the world of technology, no matter your background or experience.

Who this course is for:

  • Anyone looking to level up their skills and master C++ programming language
  • Anyone who wants to learn to code