Hatena::Groupgeneration1986

仮想化済み古代魚

 | 

2008-08-20

K&Rの演習2-4

13:55

void squeeze(char s1[], char s2[])
{
	int n;		//s2のカウント用
	int i, j;
	int c;
	
	for (n = 0; (c = s2[n]) != '\0'; ++n){	
		for (i = j = 0; s1[i] != '\0'; ++i){
			if (s1[i] != c){
				s1[j] = s1[i];
				j++;
			}
		}
		s1[j] = '\0';

	}
}

RamaRama 2013/09/23 18:07 I just hope whvoeer writes these keeps writing more!

AlenAlen 2013/09/24 20:20 I'm <a href="http://ozlsdxu.com">relaly</a> into it, thanks for this great stuff!

CarolCarol 2013/09/25 18:27 I aptceriape you taking to time to contribute That's very helpful. http://rwepmeinos.com [url=http://qatatgfm.com]qatatgfm[/url] [link=http://cupaesxmls.com]cupaesxmls[/link]

MahmoudMahmoud 2013/09/26 16:16 That's an apt answer to an <a href="http://nszlrf.com">inrtteseing</a> question

RoemerRoemer 2013/09/27 13:26 Wow! Great thgiinnk! JK http://devrrtvy.com [url=http://mciatewzegb.com]mciatewzegb[/url] [link=http://eawsoyizoo.com]eawsoyizoo[/link]

ゲスト



トラックバック - http://generation1986.g.hatena.ne.jp/oldfish/20080820
 |