VQyUtxeCRfnznTbTi

Date: 2013-01-29 03:31 am (UTC)
From: (Anonymous)
int test(const char *str1, const char *str2){ printf( test for [%s] and [%s] , str1, str2); if(str1 == 0 || str2 == 0) { reurtn 0; } int nBase[26] = {0}; while(*str1 != 0) { int nIndex = (*str1 A' > 25) ? (*str1 a') : (*str1 A'); nBase[nIndex] = 1; str1++; } while(*str2 != 0) { int nIndex = (*str2 A' > 25) ? (*str2 a') : (*str2 A'); if(nBase[nIndex] == 0) { reurtn 0; } str2++; } reurtn 1;}int _tmain(int argc, _TCHAR* argv[]){ printf( result is %d\n , test( ABCDEFGHLMNOPQRS , DCGSRQPOM )); printf( result is %d\n , test( ABCDEFGHLMNOPQRS , DCGSRQPOZ )); printf( result is %d\n , test( abcdefghlmnopqrs , DCGSRQPOM )); printf( result is %d\n , test( ABCDEFGHLMNOPQRS , dcgsrqpoz )); reurtn 0;}
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting
.

Profile

hatam_soferet: (Default)
hatam_soferet

December 2022

S M T W T F S
    123
45 678910
11121314151617
18192021222324
25262728293031

Style Credit

Expand Cut Tags

No cut tags