摘要: 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)
摘要: 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)