自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

思想有多远,路就有多远

读万卷书,行万里路

  • 博客(7)
  • 资源 (1)
  • 收藏
  • 关注

原创 疑惑的return

我写一个二叉查找树,但是发现在第一次插入节点的时候,两次return呢? /////////////////////// bst.h//////////////#ifndef _BST_H#define _BST_H template class BinSearchTree{private:      struct Node                    {

2008-06-01 20:45:00 322

原创 计算机书还是美国人写的好

现在回去看数据结构的书,是普林斯顿大学教授写的,真是详细,数学知识很多,这才是计算机。

2008-05-06 22:01:00 391

原创 undefined behavior in C++

#ifndef _STACK_H#define _STACK_Hconst int maxStack=20;template class Stack{public:       Stack():_top(0){}       T pop();       void push(T);private:        T _array[maxStack];        int _top;};

2008-04-05 15:55:00 344

原创 和去何从的职业路

从毕业后就工作在通信领域的企业,在里面做测试工作。现在我一直在问自己的前途在哪里?似乎感觉这个通信企业有点江河日下的意思,而且本人更喜欢软件行业。真是好好规划自己以后的10年。我更愿意技术加管理职业定位。CTO是我目标,我的详细行动呢? 1. 找到一个很好平台. 2. 雁过留声的留下我的价值 3. 把握自己的机会。职业之路悠悠,吾上下求索。

2008-04-04 17:08:00 225

原创 static 在C++中

看了C Static 详解  后想补充点static 在C++中的应用。static 的全局变量在C++的标准是不主张的,因为它完全可以用匿名命名空间来替代,如下面所示:namespace {int a;int b; }class A{.......}这样a,b 只能应用在当前的编译单元中。

2008-04-03 22:30:00 234

原创 10,000BC

  今天我和老婆大人去看了10,000BC。这是我第二次进上海的电影院看电影,记得上一次进上海的电影院是在1998年陕西南路的上海电影院。时光飞逝。  10,000BC 本身没有什么好看的。但是我在丛中悟出了不少东西。在古时候一阶级要统治另外一个阶级,就先要在思想上去禁锢他们。首先要说自己是神,把自己装扮的很神秘,神秘到每个细节。自己是代表神的意志来指挥和统治另外一个阶级的,这样被统治者就会乖

2008-04-03 00:05:00 397

原创 int atoi(const char*)

Recently I had a interview from MS, I had a requirement to write a function to implement string to int. At the moment I did not make the function perfect, after the interview, i finalized the function

2008-03-28 12:11:00 792

Inside the C++ Object Model

Inside the C++ Object Model focuses on the underlying mechanisms that support object-oriented programming within C++: constructor semantics, temporary generation, support for encapsulation, inheritance, and "the virtuals"-virtual functions and virtual inheritance. This book shows how your understanding the underlying implementation models can help you code more efficiently and with greater confidence. Lippman dispells the misinformation and myths about the overhead and complexity associated with C++, while pointing out areas in which costs and trade offs, sometimes hidden, do exist. He then explains how the various implementation models arose, points out areas in which they are likely to evolve, and why they are what they are. He covers the semantic implications of the C++ object model and how that model affects your programs. By Stanley B. Lippman 好书。

2009-03-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除