Having problem in User Defined function which works like strstr function
this is my yet another problem i have made 1 user defined function which works pretty much like strstr function defined in string.h but it's having problem. I have figured out the problem but don't know how to solve it. Here is the code! Please have a look and tell me how to solve it?
Just give input as iliketechnology it works fine and then give ilikettechnology! :( it's not working i know where the problem is but dont know how to solve. Please help me
char* ustrstr(char s,char t)
while(t[j]==s[i] && s[i]!=NULL)
cout<<"\n\nEnter Any String :";
cout<<"\n\nSubstring Not Found";
cout<<"\n\nSubstring Found :"<<j;