随笔分类 -  C++基础

北大OJ1001
摘要:1 #include 2 #include 3 using namespace std; 4 5 string add(string str1, string str2) 6 { 7 string str; 8 9 string::size_type L1,L... 阅读全文

posted @ 2015-08-23 17:13 Sipin 阅读(368) 评论(0) 推荐(1)

Linux内存管理_stack区的地址方向
摘要:摘自http://www.kerneltravel.net/journal/v/mem.htm文章介绍了进程是如何使用内存的。给出的说明stack的访问的代码示例中,在我的linux系统下,出现下面的情况预计得到的结果中,Initial end of stack 的值应该大于下面一行的值,因为sta... 阅读全文

posted @ 2015-03-13 19:37 Sipin 阅读(254) 评论(0) 推荐(0)

[C++]union用法
摘要:摘自cplusplus.com上关于union的解释:Unions allow one portion of memory to be accessed as different data types. Its declaration and use is similar to the one of... 阅读全文

posted @ 2015-03-04 00:01 Sipin 阅读(1327) 评论(0) 推荐(0)

导航