2-4

xiaoxiao2021-03-06  52

/ * Writer SQUEEZE (S1, S2), delete any characters in the string S1 match characters in the character string S2 * / char * SQUEEZE (CHAR * DS, CHAR * SS) {INT i = 0; char * iter = ds, * head = ss; for (; * ds! = '/ 0'; ds ) {head = ss; for (; * head! = '/ 0'; head ) {if (* DS == * Head) Break;} f (* head == '/ 0') iter [i ] = * DS; / * all do not match * /}

Iter [i] = '/ 0'; returnite;}

转载请注明原文地址:https://www.9cbs.com/read-117414.html

New Post(0)