2008年3月27日

     摘要: 下午遇到个奇怪的问题,如上所示:
就是在新建的MFC单文档中没有错,但是在基于对话框的里面就有错了,弄了半天也不知道为什么?哪位高手赐教下?
错误如下:  阅读全文

posted @ 2008-03-27 17:16 RichardHe 阅读(4487) | 评论 (2)编辑 收藏

     摘要: (1)对const的用法过去不是很明白,不过今天看了<>里面有一个巧妙的理解
1 char *p = "hello"; // 非const指针,
2 // 非const数据
3 const char *p = "hello"; // 非const指针,
4 // const数据
5 char* const p = "hello"; // const指针,
6 // 非const数据
7 const char* const p = "hello"; // const指针,
8   阅读全文

posted @ 2008-03-27 17:07 RichardHe 阅读(144) | 评论 (1)编辑 收藏


posts - 94, comments - 138, trackbacks - 0, articles - 94

Copyright © RichardHe