Thinking in C++ learning(1)-----C in C++
Posted on 2006-12-08 14:49 Teddy Yan 阅读(109) 评论(0) 编辑 收藏 举报1.& 语法糖
2.Make 编译控制 //{L} Global2 带有Global2名字的文件要被连接进来(很像xdoclet)
3.变量的定义:extern, static(两种含义:作用域内不变,指定作用域) and automatic
4.Link: internal linkage 和 external linkage
5.C++ 显示转换
l=static_cast<long>(i);
const int i=0;
const_cast<int *>(&i);
X x;
int* xp = reinterpret_cast<int *>(&x);
6.typedef 的方便之处
typedef struct {
char c;
} Structure2;
Structure2 a;
7.函数指针
void * (* (*fp1) (int) )[10];