Skip to content

About

I am a programmer and i am solving all C++ Problem by using oops !!! Approach

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

52 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Programming Practice

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

Practice Questions

Q1. Print "Hello World"

Write a program to print "Hello World" on the console.

Q2. Read and Print a Number

Read a number from the user and print it.

Q3. Print ASCII Value of a Character

Print the ASCII value of a given character.

Q4. Swap Two Numbers

Swap the values of two numbers.

Q5. Find Size of Data Types

Find the size of int, float, double, and char.

Q6. Find Compound Interest

Calculate compound interest for a given principal, rate, and time.

Q7. Check Even or Odd

Check whether an integer is even or odd.

Q8. Find Largest of 3 Numbers

Find the largest among three numbers.

Q9. Check Leap Year

Check whether a given year is a leap year.

Q10. Check Prime Number

Check whether a number is prime.

Q11. Check Number Palindrome

Check whether a number is a palindrome.

Q12. Simple Calculator

Create a calculator that performs addition, subtraction, multiplication, and division.

Q13. Reverse a Sentence Using Recursion

Reverse a given sentence using recursion.

Q14. Fibonacci Using Recursion

Find the Nth Fibonacci number using recursion.

Q15. Swap Two Numbers Using a Function

Swap two numbers using a function.

Q16. Check Whether Two Arrays Are Equal

Check whether two arrays contain equal elements.

Q17. Average of Array Elements

Calculate the average of all elements in an array.

Q18. Maximum and Minimum in Array

Find the maximum and minimum elements of an array.

Q19. Linear Search

Search for an element in an unsorted array using linear search.

Q20. Right Rotate Array K Times

Right rotate an array by K positions.

Q21. Sum of Matrix Diagonals

Find the sums of the principal and secondary diagonals of a matrix.

Q22. Rotate a Matrix

Rotate a matrix clockwise.

Q23. Find Length of String

Find the length of a string.

Q24. Compare Two Strings

Compare two strings and determine whether they are equal.

Q25. Check String Palindrome

Check whether a string is a palindrome.

Q26. Add Two Binary Strings

Add two binary numbers represented as strings.

Q27. Convert String to Integer

Convert a decimal number represented as a string into an integer.

Q28. Split String into Substrings

Split a string into substrings using a delimiter.

Q29. Print Full Pyramid Pattern

Print a full pyramid pattern for a given number of rows.

Q30. Print Number in Large Size

Receive a number and print it in large form.

Q31. Print Pascal's Triangle

Print Pascal's Triangle for N rows.

Q32. Binary to Decimal

Convert a binary number to decimal.

Q33. Decimal to Octal

Convert a decimal number to octal.

Q34. Bubble Sort

Sort an array in increasing order using Bubble Sort.

Q35. Binary Search

Search for an element in a sorted array using Binary Search.

Q36. Merge Sort

Sort an array using the Merge Sort algorithm.

Q37. Sort a String Array

Sort strings in lexicographically ascending order.

Q38. Store Student Information Using Structure

Store student information such as name, roll number, subjects, marks, and CGPA using a structure.

Q39. Add Two Complex Numbers

Add two complex numbers.

Q40. Create an Interface

Create an interface-like structure in C++ using classes and inheritance.

Q41. Create a New File

Create a new file using C++ and report whether creation succeeded.

Q42. Append One Text File to Another

Append the contents of one text file to another without replacing the existing content.

Q43. List Files in a Directory

Print the names of files present in a directory.

Q44. Handle Divide-by-Zero

Handle an attempt to divide a number by zero.

Q45. Copy a Vector Using STL

Copy the elements of one vector into another using std::copy.

Q46. Find Maximum and Minimum in a Set

Find the minimum and maximum elements of an STL set.

Q47. Find String Permutations Using STL

Find all permutations of a given string using STL.

Q48. Implement Stack Using Class Template

Implement a generic stack using a C++ class template with push(), pop(), top(), and empty().

Q49. Create a Custom Vector Class

Create a custom vector class supporting push_back(), pop_back(), size(), and indexing.

Q50. Build a Custom Map

Build a custom map-like container using a C++ header file.

Q51. Find Middle Element of Linked List

Find the middle element of a singly linked list.

Q52. Print Current Day, Date and Time

Print the current day, date, and time.

Q53. Print Calendar for a Given Year

Print the calendar for a given year.

Q54. Generate Random Double Numbers

Generate 10 random numbers of type double.

About

I am a programmer and i am solving all C++ Problem by using oops !!! Approach

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages