for(int i=0;i<n;i++)
{
pr.push_back(s[i]);
if(i==n-1) //last letter
cout<<pr<<endl;
else if(s[i+1]>=‘A’ && s[i+1]<=‘Z’) //s[i+1] is a capital letter.
{
cout<<pr<<endl;
// pr.clear();
}
}
return 0;
}
Unable to understand the implementation of -" can you ReadThis?"
how to solve this problem using c++ inbuilt implementation of strtok();
just do it simply using one for loop
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.