A player need to be selected as vice-captain of a sports team on the basis of his wins and losses over his career. Hence positons remain the same for selection as a vice captain. Write a class of a player, define relative data members and member function (setter, getters). Also add the wins and lose member functions.
Create a class Coordinates having two attributes X and Y and relative methods for it. Create another class Point which will carry the object form coordinates class.
Create two points and display their X and Y coordinates.
Create a class Lab which will have the objects from the class Computer which will further carries the object of another class named Accessories
Write required methods and attributes with in the class implementation.
Using the knowledge from above relationships complete your implementation.
WAP to add two time[hr:min:sec] using class and obj...concept(passing object as an argument).
WAP to find name and mark of a student who scored heist in a class by considering minimum five student by using class and object (array of object) by considering suitable data member and fun().
WAP to find sum of all five marks of student using array inside a class.
WAP to find smaller number among three int numbers using PRIVATE member function.
WAP in c++ to find any integer power of a integer number(both numbers are user i/p)[using class and object]
Write a program to enter a multiline string, by taking input from the user. Remove all the multiple blank spaces by copying the string to another string. Deallocate the memory for first string. Display the second string.
Sum of digits
Input
12
Output
1+2=3