![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
指针
Jackson-p
相信命运,自律自由.
展开
-
指针做水题 hdu 2549
#include#include#include#include#includeusing namespace std;char xias[20];int main(){ int t,n,eky; cin>>t; char *p; while(t--) { memset(xias,0,sizeof(xias));原创 2016-11-09 20:19:22 · 243 阅读 · 0 评论 -
有关malloc与realloc
这两个东西出现在c语言里还好说,出现在数据结构里真是频率比较高的,而且傻傻分布不清楚,所以还是简单分析一下2333一、malloc函数头文件:#include (也可用#include,如果用c++的话会被包含在#include里)作用:给我们的程序请求出一片内存,以供使用,一般使用过后要用free函数释放掉内存(没有free的话,会造成内存泄漏.一部分的内存没有被使用,但是由于没有f原创 2017-06-03 14:32:17 · 512 阅读 · 0 评论