1、NULL; NULL 即空指针,在C和C++中的形式不一样,msdn上有如下的内容那个:#if !defined(NULL)&&defined(__NEEDS_NULL)#ifdef __cplusplus#define NULL 0#else#define NULL ((void *)0)#e... Read More
posted @ 2015-11-19 10:31 天王星B Views(333) Comments(0) Diggs(0)
C programming language:P13 行计数e.g.#include int main(void){ int c, nb, nt, nl; nb=0, nt=0, nl=0; while((c=getchar())!='0'){ if(c==' ') ++nb; if(c=='\t... Read More
posted @ 2015-11-19 09:17 天王星B Views(136) Comments(0) Diggs(0)