/*
* Frequently Occurred Mistakes when code in C
*/
/* May 8, 2008 */
Right shift unsigned int, vacated bits will be filled with zero. Unlike signed int, which is filled with sign bits.
/* May 7, 2008 */
struct student { /* ATTN: ';' is often omitted */
char *name;
int num;
}
#define OUT 0; /* ATTN: no ';' needed here */
for (int i=0; i ;
getline(char *, lim) and getlongestline(char *, int lim) /* always remember the principle of divide and conquer */
阅读(950) | 评论(0) | 转发(0) |