數據結構示例之根據位置和長度刪除子字符串

如下爲「根據位置和長度刪除子字符串」的簡單示例:code 1. 用c語言實現的版本blog #include<stdio.h> /* 根據位置和長度,刪除子字符串 */ char *strdel(char *s,int pos,int len) { int i; --pos; for(i = pos + len; s[i] != '\0'; ++i) {
相關文章
相關標籤/搜索