新人求问,关于 codeblocks 的一些使用问题
codeblocks感觉有点用不来,希望谁有空指点下~~~~~
2014-11-15 14:10
程序代码:#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;
}
2014-11-15 14:13
2014-11-15 14:19
2014-11-15 14:21
2014-11-15 14:32