sundeepblue

Computer Graphics, CAGD, Demoscene, intro [crack each line of code, cram each bit of byte, create each idea of mind]

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

2007年11月3日

摘要: const主要是为了程序的健壮型,减少程序出错. 最基本的用法: const int a=100; b的内容不变,b只能是100也就是声明一个int类型的常量(#define b =100) int const b=100; //和上面作用一样 const指针和引用一般用在函数的参数中 int* m = &a; //出错,常量只能用常指针 int c= 1;const int*pc = &c;//常指针可指向常量 阅读全文
posted @ 2007-11-03 04:15 sundeepblue 阅读(321) 评论(0) 推荐(0) 编辑

摘要: 堆和栈的区别 一、预备知识—程序的内存分配 一个由c/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。 阅读全文
posted @ 2007-11-03 04:10 sundeepblue 阅读(204) 评论(0) 推荐(0) 编辑

2007年10月11日

摘要: http://www.linuxalt.com/ Welcome to the Linux Alternative Project (formally the Linux Equivalent Project). The goal is to provide an informational and available website for all linux users. The website is currently in beta form. I will be periodically updating the database with Windows software and the Linux equivalents and alternatives. 阅读全文
posted @ 2007-10-11 16:40 sundeepblue 阅读(324) 评论(0) 推荐(0) 编辑

摘要: Linux与windows 互访总结 Smb是实现linux和windows互访的一座桥梁,所以就先让我们来了解一下什么是smb,它的主要功能,通过smb实现共享的方法及配置。在最后我们还介绍了怎样使用mount命令来挂载windows共享目录。 阅读全文
posted @ 2007-10-11 16:38 sundeepblue 阅读(554) 评论(0) 推荐(0) 编辑

2007年10月8日

摘要: | | | -===+=====_/(T)\_=====+===- 阅读全文
posted @ 2007-10-08 17:37 sundeepblue 阅读(690) 评论(1) 推荐(0) 编辑

摘要: Good! I will try "Lyx", the first wysiwym LaTeX editor! Below are copied from the official website of Lyx. The LaTeX Document Processor 阅读全文
posted @ 2007-10-08 15:16 sundeepblue 阅读(438) 评论(0) 推荐(0) 编辑

摘要: Ctrl+O :Open Ctrl+P :Print Ctrl+N :New Ctrl+Shift+F2 :清除所有书签 F2 :上一个书签 Shift+F2 :上一个书签 Alt+F2 :编辑书签 Ctrl+F2 :添加/删除一个书签 F12 :Goto definition Shift+F12 :Goto reference Ctrl+'Num+' :Displays the next symbol definition or reference Ctrl+'Num-' :Displays the previous symbol definition or reference 阅读全文
posted @ 2007-10-08 01:02 sundeepblue 阅读(310) 评论(0) 推荐(0) 编辑

2007年10月7日

摘要: Manipulating Strings -------------------------------------------------------------- size_t strlen(char *str) --------------------------------------------------------------- 阅读全文
posted @ 2007-10-07 03:31 sundeepblue 阅读(461) 评论(0) 推荐(0) 编辑

摘要: A Tree Manipulation Library Whenever you implement a new data type, it is usually a good idea to provide functions for manipulating it. There is a general concept in computer science referred to as the black box principle. It is the idea that the user of a data type should not need to be aware of how it is implemented because a library of functions is provided to interact with. This library separates the user from the implementation. This is a good idea because it allows you the progra 阅读全文
posted @ 2007-10-07 02:07 sundeepblue 阅读(282) 评论(0) 推荐(0) 编辑

摘要: What is Recursion? http://www.sparknotes.com/cs/recursion/whatisrecursion/section1.html An Introductory Example Imagine the following scenario. You're a talented programmer at Robot Works, Inc. One day, a valuable customer of yours, Gene Roddenberry (of Star Trek fame), comes to you with a problem. He is creating a new TV show called "Star Trek: The Next Generation" and one of his characters in the show, Data, is an android. At the last minute, the actor who was supposed 阅读全文
posted @ 2007-10-07 01:47 sundeepblue 阅读(474) 评论(0) 推荐(0) 编辑