Write a C++ program such that the following main function.
Â
I need Complete Code in C++, Can anyone help me?
Q.No.2. (Points: 18) Write a C++ program such that the following main function executes successfully without any error and with the correct outputs. You are not allowed to use built functions of cstring or string class. int main() { MyClass m1; //MyClass has just one data member i.e. character array named str of size X 1/where X is a constant integer and have value equal to your last 3 digit of arid number MyClass m2("COVID-19"), m3("Mid2020"); m2.display(); //will display COVID-19 cout<<endl; m2.myFunction(m3); m2.display(); //now it will display Mid2020 cout<<endl; m3.display(); //now it will display COVID-19 // if your array size is even then you will add myEvenFn() in class with empty body else add myOddFn() return 0; }
Solved
Programming in C,C++
1 Answer
Student Student
Login to view answer.