Hello
What if i have a string ,and want to search for data in it,not from that start,but from a specified location how can i do it?
i tried to using :
But its not working :\Code:string temp ;
size_t loc;
temp.find("x",loc);
thanks alot
Printable View
Hello
What if i have a string ,and want to search for data in it,not from that start,but from a specified location how can i do it?
i tried to using :
But its not working :\Code:string temp ;
size_t loc;
temp.find("x",loc);
thanks alot
In your code you haven't initialized temp and loc. Otherwise it should work.
Post a real example that you tried and didn't work and describe how it didn't work (compiler error, unexpected results etc).