C++ Practices set

 C++ practics Problem and solution 

Problem 1: Write your first program. The output of the program will be Hello world!

Problem 2: Write a program and ask the user to input two number, and print sum, difference, and product of numbers

Problem 3:Create student class, the class has 3 private attributes Rollnum, name, and percentage and also 3 methods to get name .roll number also write a function that calculates the percentage you are passing marks in that function. Test everything inside the main function.

Problem 4: Create student class, the class has 3 private attributes Rollnum, name, and percentage and also 3 methods to get name .roll number also write a function that calculates the percentage you are passing marks in that function. Test everything inside the main function. ( C++ program to define a class and method are defined outside the class definition.)

Problem 5: Adding two complex number using a class program in C++

Problem 6:Write a c++ program to create a complex class and use an array of object to print and writing value

Problem 7: Write a program adding two times and correction of time using the class program in C++

Problem 8:Write a program in C++ an object of a class inside another class declare

Project 1:Write a c++ code for simple Bank management system

Problem 9:Create a Rational class and perform arithmetic with a fraction

Problem:10 Write a program in class, sum of two Complex numbers using friend function

Porblem:11 Write code and do unary operators - overload

problem:12 Write a code to overloading the comparison operators (== and != ).In this code comparison of a complex number.

Problem 13: Virtual Function definition and example

problem 14: Templates in C++ || Write code and return max value

problem 15:Type Inference in C++ and with the template : auto and decltype

Problem 16:Template class: Write a template class and add two numbers. Test integer and double type value inside main.

Problem 17:C++ Standard Template Library: Write a code to push value inside vector and display with help of an iterator

Problem 18: STL : copy a vector into another vector in C++ using copy

Problem 19: C++ Program: Association in class Example:Write a code to associate Two class

Problem 20: C++ Program: Association in class Example :Write a code to associate Two class

Problem 21:Write a program in c++ :Implement the classes and use inheritance (Class medium ,class hardDisk ,Class optical Disk, class CD and class DVD show inheritance with operator << overloading)