编函数insert(char * s1,char * s2,int v),在字符串s1的第v个字符处插入字符串s2
编函数insert(char * s1,char * s2,int v),在字符串s1的第v个字符处插入字符串s2
日期:2017-05-30 13:23:59 人气:1
#include #include "string.h"#include "stdlib.h"void insert(char * s1,char * s2,int v){ int i,j; char *t=(char *)malloc(sizeof(char)*strlen(s1)+1); if(!t){ printf("Application memory failure...\n");