摘要:
题目:两个字符串,s,t;把t字符串接到s字符串尾,s字符串有足够的空间存放t字符串void connect(char *s,const char *t) //strcat strlen strcpy strcmp strchr strstr //形参{char *q = t;char *p =s;if(q == NULL)return; //判断q是否为空指针,为空时可以不用进行拼接操作while(*p!='\0') //p指针往上偏移,移到’\0’时跳出此while循环,进入第二个while循环{p++;}while(*q!=0){*p=*q;p++;q++;}*p = & 阅读全文
posted @ 2013-07-10 23:37
孤独的旅行
阅读(318)
评论(0)
推荐(0)
摘要:
Life is an onion and one cries while peeling it.生命就是一个洋葱,我们泪汪汪的,一层层剥开它。 阅读全文
posted @ 2013-07-10 07:48
孤独的旅行
阅读(102)
评论(0)
推荐(0)
浙公网安备 33010602011771号