新人求问,关于 codeblocks 的一些使用问题
codeblocks感觉有点用不来,希望谁有空指点下~~~~~
程序代码:
#include <stdio.h> #include <limits.h> int main() { printf("Hello world!\n"); printf("Size of Char %d\n",CHAR_BIT);//CHAR_BIT表示char类型用多少位来表示; printf("Size of Char max %d\n",CHAR_MAX); printf("Size of Char min %d\n",CHAR_MIN); printf("Size of Int max %d\n",INT_MAX); printf("Size of Int min %d\n",INT_MIN); printf("Size of Long max %ld\n",LONG_MAX); printf("Size of Long min %ld\n",LONG_MIN); printf("Size of Short max %d\n",SHRT_MAX); printf("Size of short min %d\n",SHRT_MIN); printf("Size of unsigned char %u\n",UCHAR_MAX); printf("Size of unsigned long %lu\n",ULONG_MAX); printf("Size of unsigned int %u\n",UINT_MAX); printf("Size of unsigned short %u\n",USHRT_MAX); return 0; }
上面为什么printf()函数里面%ld 会打红色的波浪线啊,
还有汉字下面也会打红色的波浪线,这是规则吗