
conflict using string from <string> and strstr fucntion from <string.h>
Not yet. one of my friends told me that I couldn't put
two lib in one cpp file. It turns out he is wrong.
Thanks.
Quote:
>-----Original Message-----
>> in my main cpp file, I include <string> to declare a
>> string vector.
>> However, I find that I must use strstr to find matched
>> substring. What should I do?
>> Can I use strstr and include <string.h> in another .cpp
>> file ?
>You can do it in the same .cpp file. The two headers are
completely
>independent. Are you running into any specific problems?
>--
>With best wishes,
> Igor Tandetnik
>"For every complex problem, there is a solution that is
simple, neat,
>and wrong." H.L. Mencken
>.