随笔分类 -  C/C++

LeetCode(一):twoSum 与C++语法的一点笔记
摘要:问题:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the t... 阅读全文
posted @ 2015-11-22 20:36 那个(_少年 阅读(269) 评论(0) 推荐(0)
C语言中内存分配
摘要:在任何程序设计环境及语言中,内存管理都十分重要。在目前的计算机系统或嵌入式系统中,内存资源仍然是有限的。因此在程序设计中,有效地管理内存资源是程序员首先考虑的问题。第1节主要介绍内存管理基本概念,重点介绍C程序中内存的分配,以及C语言编译后的可执行程序的存储结构和运行结构,同时还介绍了堆空间和栈空间... 阅读全文
posted @ 2015-09-13 20:46 那个(_少年 阅读(236) 评论(0) 推荐(0)