• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






努力爬行的小虫子

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2020年11月22日

为什么要malloc()?何时要malloc()?如何使用malloc()?
摘要: 1、https://blog.csdn.net/wstz_5461/article/details/74356690?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.contr 阅读全文
posted @ 2020-11-22 22:17 努力爬行的小虫子 阅读(267) 评论(0) 推荐(0)
 
2003年真题
摘要: 2003年真题 二、 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 5 int dec(int a[],int n){ 6 if(n<=1) 7 return 1; 8 if(a[0]<a[1])//只要子序列第一个数和第二个数为非递减数列则说明该数列 阅读全文
posted @ 2020-11-22 22:12 努力爬行的小虫子 阅读(37) 评论(0) 推荐(0)
 
字符串的初始化
摘要: 字符串的初始化 来自:https://blog.csdn.net/u013988442/article/details/84027542 //不指定长度, 没有0结束符,有多少个元素就有多长 char buf[] = { 'a', 'b', 'c' }; printf("buf = %s\n", b 阅读全文
posted @ 2020-11-22 21:10 努力爬行的小虫子 阅读(439) 评论(0) 推荐(0)
 
char *s1 = "hello"和char s2[]="world"的区别
摘要: char *s1 = "hello"和char s2[]="world"的区别 链接:http://www.voidcn.com/article/p-mionkggw-bkb.html 这两个字符串存储在一片连续的存储空间中,当时纳闷怎么一到*s1=*s2就挂了,查了一下原来是这样的,也即是说cha 阅读全文
posted @ 2020-11-22 21:02 努力爬行的小虫子 阅读(324) 评论(0) 推荐(0)
 
递归
摘要: 递归专题 1、求n个数的子序列 设这n个数为1,2,3 则为子序列如下: 恰好构成一个满二叉树 则只需深度遍历满二叉树,访问时把路径记录下来即可 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define MAXN 20 4 5 int path[MAX 阅读全文
posted @ 2020-11-22 16:00 努力爬行的小虫子 阅读(28) 评论(0) 推荐(0)