Hi All,
I have to implement string class and write a program to perform string manipulation in Mystring class.
input:
"he is going to school"
output
Case 1: (n=1)
He school to going is
Case 2: (n=2)
He is school to going
Case 3:(n=5)
No changes
Case 4 n<=0
school to going is He.
int main()
{
char str[100]= "";
int n;
//Take input str and n from console
MyString obj (str);
obj.manipulate(n);//Actual logic
obj.display();// This will print output
return 0;
}
can anybody throw some light on approach to for case 1 and case 2.