Question: Task 1: Write a program that reads the characters from text file. It counts total number of characters and total number of vowels in the
Task 1: Write a program that reads the characters from text file. It counts total number of characters and total number of vowels in the file. Task 2: Write a program that overloads the comparison operators (==) to work with class named MYCLASS. The result must be 1 if two strings are same length and 0 otherwise. Note: your class have character array as data member and you have to check the both names are equal in length or not by overloading equal operator ( == ). Task 2: Write a template function which takes the array of different types e.g. int, double etc. and shows all its elements which are odd.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
