ok thanks
ok thanks
Last edited by sean...; 02-18-2005 at 04:10 AM.
Hint: Take a look at the functions strspn() and strlen()...
edit: sorry, I just noticed that you are looking at arrays of ints so you can't use these useful string functions. The pseudo code you want is something like:
Code:for every value in a { for every value in b { if values in a and b are equal move on to next value in a } if you got to the end of b and didn't find a match then return 0 }if you get here, return 1 (arrays are equivalent)
Last edited by DavT; 02-18-2005 at 03:03 AM. Reason: misread question!
DavT
-----------------------------------------------
if the arrays are typecasted into the function it should work. other than that the arrays should be type char anyway.