09-26-2007, 12:56 PM
str a="abcdefg012"
str b="bcd012fega"
What function can I use to do a=b?
str b="bcd012fega"
What function can I use to do a=b?
Characters of string
|
09-26-2007, 12:56 PM
str a="abcdefg012"
str b="bcd012fega" What function can I use to do a=b?
09-26-2007, 01:13 PM
if(a.len!=b.len) ret
int i for i 0 a.len ,if(findc(b a[i])<0) ret ret 1 not tested
09-26-2007, 01:29 PM
if
str a="abcdef001a" str b="bcd012fega" ret 1
09-26-2007, 01:33 PM
Can you explain in English?
09-26-2007, 01:37 PM
I'm looking for a function that returns 1 if ALL characters of str b are in str a (combinations)
e. str a="abcdef001a" str b="bcd012fega" ret 0
09-26-2007, 01:46 PM
Don't know such function but can be used findc repeatedly.
Also see strpbrk, strspn and strcspn in MSDN library, maybe it is what you need.
09-26-2007, 01:50 PM
Ok. Thanks.
09-26-2007, 02:19 PM
Forgot findcs and findcn. The same as strpbrk etc.
09-26-2007, 02:47 PM
09-26-2007, 02:53 PM
Don't know what is it. Something like Crc32? I would use pow(a[i] 4).
09-26-2007, 05:59 PM
It's a function that converts a string in an only number although the letters are disordered.
|
« Next Oldest | Next Newest »
|