SmartVessel

Foucs on C++

博客园 首页 新随笔 联系 订阅 管理

2011年4月13日 #

摘要: A static global variable is local to the translation unit it is defined in. So, if you define static int a; in two different translation units, this will create two independent variables. If you define a non-static global variable int b; in two translation units, you will experience a linker error ( 阅读全文
posted @ 2011-04-13 11:09 SmartVessel 阅读(530) 评论(0) 推荐(0) 编辑

摘要: To simplify just a bit, there are basically three main storage areas you need to be concerned with: Global data -- a single static memory location outside the stack or heap. These are the variables declared not local to any function. (The distinction evident by the C/C++ "static" keyword i 阅读全文
posted @ 2011-04-13 10:26 SmartVessel 阅读(231) 评论(0) 推荐(0) 编辑

摘要: Take it with a grain of salt when you read it :) Well, the three things you refer to are automatic, static and dynamic storage duration, which has something to do with how long objects live and when they begin life. You use automatic storage duration for short lived and small data, that is needed on 阅读全文
posted @ 2011-04-13 10:19 SmartVessel 阅读(419) 评论(0) 推荐(0) 编辑

2011年4月12日 #

摘要: Summary of what static, heap, and stack memory are: A static variable is basically a global variable, even if you cannot access it globally. Usually there is an address for it that is in the executable itself. There is only one copy for the entire program. No matter how many times you go into a func 阅读全文
posted @ 2011-04-12 16:10 SmartVessel 阅读(432) 评论(0) 推荐(0) 编辑

2011年4月4日 #

摘要: sudo vim /usr/share/applications eclipse.desktop 1 [Desktop Entry] 2 Name=Eclipse 3 Comment=Eclipse for Jave 4 Exec=/usr/local/src/eclipse/eclipse 5 Icon=/usr/local/src/eclipse/icon.xpm 6 Terminal=false 7 Type=Application 8 Categories=Application;Development; 阅读全文
posted @ 2011-04-04 22:51 SmartVessel 阅读(1105) 评论(0) 推荐(0) 编辑

摘要: Sun JVM System Wide You may also want to use the Sun JVM system-wide. Enabling the Sun JVM is a snap using update-java-alternatives. First, find out which versions of Java you have installed through Ubuntu. sudo update-java-alternatives --list output: java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun ja 阅读全文
posted @ 2011-04-04 22:05 SmartVessel 阅读(253) 评论(0) 推荐(0) 编辑

摘要: mark@vessel:/etc$cat/etc/issueDebian GNU/Linux 6.0 \n \lmark@vessel:/etc$uname-runame -m2.6.26-2-686mark@vessel:/etc$sudolsb_release-aNo LSB modules are available.Distributor ID: DebianDescription: Debian GNU/Linux 6.0.1 (squeeze)Release: 6.0.1Codename: squeezecat/etc/debian_version 阅读全文
posted @ 2011-04-04 19:53 SmartVessel 阅读(351) 评论(0) 推荐(0) 编辑

2011年4月3日 #

摘要: mark@vessel:~$ df -lhFilesystem Size Used Avail Use% Mounted on/dev/sda5 46G 543M 43G 2% /tmpfs 1.5G 0 1.5G 0% /lib/init/rwudev 10M 816K 9.3M 8% /devtmpfs 1.5G 0 1.5G 0% /dev/shm/dev/sda1 183M 21M 153M 12% /boot/dev/sda6 184G 12G 163G 7% /home/dev/sda7 56G 3.3G 49G 7% /usr 阅读全文
posted @ 2011-04-03 20:24 SmartVessel 阅读(167) 评论(0) 推荐(0) 编辑

2011年3月8日 #

摘要: 1、Java Java编程语言(第三版)---Java四大名著----James Gosling(Java之父) Java编程思想(第2版)----Java四大名著----Bruce Eckel Java编程思想(第3版)----Java四大名著----------------Bruce Eckel JAVA 2核心技术 卷I:基础知识(原书第7版)---Java四大名著-----Cay Horstmann JAVA 2核心技术 卷II:高级特性(原书第7版)----Java四大名著-----Cay Horstmann Effective Java中文版------Java四大名著------ 阅读全文
posted @ 2011-03-08 16:33 SmartVessel 阅读(316) 评论(0) 推荐(0) 编辑

2011年2月10日 #

摘要: http://videolectures.net/http://raphaelhertzog.com/ 阅读全文
posted @ 2011-02-10 09:43 SmartVessel 阅读(247) 评论(0) 推荐(0) 编辑