This repository contains a collection of C++ practice questions and exercises. The documentation below lists the problems covered in this workspace.
I use oops !!! Approach to Solve C++ Problems
Write a program to print "Hello World" on the console.
Read a number from the user and print it.
Print the ASCII value of a given character.
Swap the values of two numbers.
Find the size of int, float, double, and char.
Calculate compound interest for a given principal, rate, and time.
Check whether an integer is even or odd.
Find the largest among three numbers.
Check whether a given year is a leap year.
Check whether a number is prime.
Check whether a number is a palindrome.
Create a calculator that performs addition, subtraction, multiplication, and division.
Reverse a given sentence using recursion.
Find the Nth Fibonacci number using recursion.
Swap two numbers using a function.
Check whether two arrays contain equal elements.
Calculate the average of all elements in an array.
Find the maximum and minimum elements of an array.
Search for an element in an unsorted array using linear search.
Right rotate an array by K positions.
Find the sums of the principal and secondary diagonals of a matrix.
Rotate a matrix clockwise.
Find the length of a string.
Compare two strings and determine whether they are equal.
Check whether a string is a palindrome.
Add two binary numbers represented as strings.
Convert a decimal number represented as a string into an integer.
Split a string into substrings using a delimiter.
Print a full pyramid pattern for a given number of rows.
Receive a number and print it in large form.
Print Pascal's Triangle for N rows.
Convert a binary number to decimal.
Convert a decimal number to octal.
Sort an array in increasing order using Bubble Sort.
Search for an element in a sorted array using Binary Search.
Sort an array using the Merge Sort algorithm.
Sort strings in lexicographically ascending order.
Store student information such as name, roll number, subjects, marks, and CGPA using a structure.
Add two complex numbers.
Create an interface-like structure in C++ using classes and inheritance.
Create a new file using C++ and report whether creation succeeded.
Append the contents of one text file to another without replacing the existing content.
Print the names of files present in a directory.
Handle an attempt to divide a number by zero.
Copy the elements of one vector into another using std::copy.
Find the minimum and maximum elements of an STL set.
Find all permutations of a given string using STL.
Implement a generic stack using a C++ class template with push(), pop(), top(), and empty().
Create a custom vector class supporting push_back(), pop_back(), size(), and indexing.
Build a custom map-like container using a C++ header file.
Find the middle element of a singly linked list.
Print the current day, date, and time.
Print the calendar for a given year.
Generate 10 random numbers of type double.