
c++
hudie86555
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ofstream修改文件
同事有一段程序,用以下方式打开文件 ofstream iofile2; iofile2.open("stud.dat", ios::out | ios::binary); 并通过 iofile2.seekp(2*sizeof(stud[0]), ios::beg); 调整文件位置 对文件中一段内容进行修改 iofile2.wr转载 2013-06-19 09:18:00 · 2539 阅读 · 1 评论 -
#ifdef and #if defined
#ifdef 和 #if defined 的区别在于,后者可以组成复杂的预编译条件,比如 #if defined (AAA) && defined (BBB) xxxxxxxxx #endif #if defined (AAA) || VERSION > 12 xxxxxxxxx #endif 而#ifdef 就不能用上面的用法,也就是说,当你要判断单个宏是否定义时 #转载 2013-06-24 13:41:36 · 980 阅读 · 0 评论