会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
keep-thingking
博客园
首页
新随笔
联系
订阅
管理
2018年4月17日
strcpy与strncpy之区别
摘要: 1、手写strcpy 这是将strSrc中的数据拷贝到以strDest开头的地址里面。内存不能重叠。 char * strcpy(char *strDest,char * strSrc) { assert(strDest!=NULL&strSrc!=NULL); ///这里,主要这是NULL,不要写
阅读全文
posted @ 2018-04-17 21:50 keep-thingking
阅读(4512)
评论(0)
推荐(1)
2017年10月25日
leetcode接雨水42. Trapping Rain Water
摘要: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
阅读全文
posted @ 2017-10-25 10:53 keep-thingking
阅读(321)
评论(0)
推荐(0)
公告