i was having some problem with char and string
In a string we can search a word using find like this
#include<iostream>
#include<string>
int main()
{
string me="I am best";
int offset ;
offset=me.find("best");
std::cout<<offset;
return 0 ; //edited
}
So my Problem is how do I find a word in char array
Thanks for any help you provide
This post has been edited by prabh: 08 June 2009 - 10:15 AM

New Topic/Question
Reply



MultiQuote





|