字符串
文章平均质量分 66
chenjunxian
这个作者很懒,什么都没留下…
展开
-
m个人围成一圈,每隔n个人出列,求出列的顺序
#include #include #include #include #include typedef struct node{ int data; node *next; }Node; int func(int m,int n){ int i=0,j=0; Node *head,*p,*q; head=(Node *)malloc(siz原创 2013-08-21 10:24:31 · 801 阅读 · 0 评论 -
写一函数,实现删除字符串str1中含有的字符串str2.
删除str2在str1中第一次出现的部分 #include #include #include char* del(char* str1,char* str2){ char* temp=(char*)malloc(sizeof(strlen(str1))); char* t=temp; char* p=str2; char* temp2=str1; if(strlen(st原创 2013-08-21 10:21:07 · 5037 阅读 · 0 评论