my code isn’t working properly please help in it?
Doubt in CanYouReadThis?
ohh, sorry
here it is
hi shubham
can you please your logic as your logic is not clear
i am trying to make funtion like strtok(in built funtion,“string tokenizer function”) function .
it’s been explained to us in one of the lecture of string in this course only.
somebody please reply
i will check again and then tell you
1 Like
i found your method to be quite complicated and i m not able to debug becuase the complexity of code is quite high
although this question is quite simple
int start=0,end=0;
int i=0;
while(i<str.size())
{
if(isupper(str[i]))
{
start=i;
cout<<str[i];
i++;
while(islower(str[i]))
{
cout<<str[i];
i++;
}
cout<<endl;
}
}
you just need this while and that will work
1 Like