|
-
May 14th, 2005, 01:56 AM
#1
Searching a string
I'd like to search for a short string in a long string
but find() can only give me the position of the first meet, whereas I want to take out all of their matching positions. How can i do this in C and or or C++ ?
Thank you
Eample: input: There is a skeleton in his cupboard and a small gun in his shirt's pocket
search for in, and return two matches
These are bunnies, copy them into your sig to help blue bunny gain good ratings and support purple bunny to build bigger gaming systems.
(\ /) (\./)
(' ,')('. ')
(><)(><) Both are mine 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|