关于作者

用户名:toocn
笔名:2007.4.29
地区: 江西-南昌
行业:其他

日历  

快速登录

+ 用户名:
+ 密 码:

在线留言



xieyubo的BLOG

http://xieyubo.ahbhost.com/blog/index.php

访问统计:
文章个数:100
评论个数:4
留言条数:0




Powered by BlogDriver 2.1

TOTO's Thinking Different

 

欢迎访问TOTO'S的博客

文章

2006.09.09 19:52

罗:

你也是一个好老公!爱死你了

- 作者: 2007.4.29 2006年09月9日, 星期六 19:53  回复(0) |  引用(0) 加入博采

2006.9.9 19:49

【好久没来更新和LP的短信了,今天和LP多聊了一会】

我爱你,老公!你睡觉前和你聊天吧。

- 作者: 2007.4.29 2006年09月9日, 星期六 19:52  回复(0) |  引用(0) 加入博采

Fred::Fred(int sz): size(sz){}

// ConstInitialization.cpp
// Initializing const in classes

#include <iostream>
using namespace std;

class Fred{
 const int size;
public:
 Fred(int sz);
 void print();
};

Fred::Fred(int sz):size(sz){}         //Strange there is no semicolon(;) as its end
                                                     //构造函数初始化列表的形式
void Fred::print() {cout << size <<endl;}

int main()
{
 Fred a(1), b(2), c(3);
 a.print(), b.print(), c.print();
}

注释处的形式可以在其他函数的地方初始化const变量,这样更加方便灵活地的使用const

- 作者: 2007.4.29 2006年09月8日, 星期五 14:31  回复(0) |  引用(0) 加入博采

volatile 变量
摘要:const ※※ volatile 查看全文

- 作者: 2007.4.29 2006年09月3日, 星期日 21:07  回复(0) |  引用(0) 加入博采

【转】纪念李春华的
摘要:李春华 查看全文

- 作者: 2007.4.29 2006年08月18日, 星期五 19:15  回复(0) |  引用(0) 加入博采

stat lstat fstat
摘要:stat 查看全文

- 作者: 2007.4.29 2006年08月18日, 星期五 18:23  回复(0) |  引用(0) 加入博采

char * const || const char * || char *
摘要:char * const || const char * || char *比较 查看全文

- 作者: 2007.4.29 2006年08月18日, 星期五 11:59  回复(3) |  引用(0) 加入博采

__cdecl __fastcall与 __stdcall
摘要:__cdecl __fastcall与 __stdcall 查看全文

- 作者: 2007.4.29 2006年08月17日, 星期四 17:29  回复(0) |  引用(0) 加入博采

静态变量不放在构造函数里面的原因
摘要:static 查看全文

- 作者: 2007.4.29 2006年08月8日, 星期二 10:13  回复(0) |  引用(0) 加入博采

extern 与 static
摘要:extern 与static的比较 查看全文

- 作者: 2007.4.29 2006年08月4日, 星期五 10:51  回复(0) |  引用(0) 加入博采