2009年9月26日

C++中的const_cast

摘要: #include<iostream>#include<string>using namespace std; int main(){ const int num=1; int *p=const_cast<int *>(&num); *p=2; cout<<num<<endl;//输出1 cout<<*p<<... 阅读全文

posted @ 2009-09-26 23:39 ATAK 阅读(249) 评论(0) 推荐(0) 编辑

C++编译器符号表有哪些内容?(转帖)

摘要: 原帖地址:http://blog.csdn.net/abortexit/archive/2007/04/24/1583306.aspx很早就想写一篇关于符号表的学习小结,可是迟迟不能下笔。其一是因为符号表在编译器的设计中占有举足轻重的地位【我们在学习编译原理的时候更多的是注重principles,而没有关心一个编译器的实现,所以符号表讲解的也比较少】,编译阶段的每“遍”都会... 阅读全文

posted @ 2009-09-26 23:31 ATAK 阅读(2383) 评论(0) 推荐(0) 编辑

导航