- 博客(2)
- 收藏
- 关注
原创 模拟实现strstr函数
模拟实现strstr函数#include <stdio.h>#include <string.h>#include <stdlib.h>int mystrstr(const char *str1 ,const char * str2){ int cunt=0; //作为计数既返回的位置 int flag = 0; //标志参数 if(strlen(str1) < strlen(str2)
2021-11-10 20:22:02
123
原创 利用链表模拟进行数三游戏
利用链表模拟进行数三游戏#include <stdio.h>#include <stdlib.h>typedef struct Link{ int data; struct Link *prev,*next;}link;int main(){ int num,cunt; link *head=(link *)malloc(sizeof(link)); //创建双向循环链表头结点 head->prev=head; head->next=head;
2021-09-22 10:03:15
177
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅