*** 自写代码:删除指定长度的字符

#include #include using namespace std; // pos starting from 0 char * deleteChars1 (char * src, int pos, int len) { if ((src==NULL) || (posp) || (src+pos+len-1>p)) return NULL; memcpy (src+p...
posted @ 2018-12-23 19:04  super行者  阅读(209)  评论(0编辑  收藏  举报