摘要:
Reading With Purpose: A grand experimentThis is the preface to a set of notes I'm writing for a seminar this semester. It will be a fun and bumpy ride... 阅读全文
摘要:
typedef和#define的用法与区别typedef和#define的用法与区别一、typedef的用法在C/C++语言中,typedef常用来定义一个标识符及关键字的别名,它是语言编译过程的一部分,但它并不实际分配内存空间,实例像:typedef int INT;typedef int ARR... 阅读全文
摘要:
有关stdint.h 文件Google C++编程规范的P25页有如下叙述: 定义了 int16_t 、 uint32_t 、 int64_t 等整型,在需要确定大小的整型时可以使用它们代替 short 、 unsigned long long 等,在 C 整型中,只使用 int 。适当情况下,推 ... 阅读全文
摘要:
为什么可以用while(cin)?/** * @brief The quick-and-easy status check. * * This allows you to write constructs such as * "if (!a_stream) ..." and "while (... 阅读全文