易截截图软件、单文件、免安装、纯绿色、仅160KB

C/C++ 内置类型的数值范围

Data   Type   Ranges  
  C/C++   recognizes   the   types   shown   in   the   table   below.  
   
  Type   Name   Bytes   Other   Names   Range   of   Values    
  int   *   signed,    
  signed   int   System   dependent    
  unsigned   int   *   unsigned   System   dependent    
  __int8   1   char,    
  signed   char   –128   to   127    
  __int16   2   short,    
  short   int,    
  signed   short   int   –32,768   to   32,767    
  __int32   4   signed,    
  signed   int   –2,147,483,648   to   2,147,483,647    
  __int64   8   none   –9,223,372,036,854,775,808   to   9,223,372,036,854,775,807    
  char   1   signed   char   –128   to   127    
  unsigned   char   1   none   0   to   255    
  short   2   short   int,    
  signed   short   int   –32,768   to   32,767    
  unsigned   short   2   unsigned   short   int   0   to   65,535    
  long   4   long   int,    
  signed   long   int   –2,147,483,648   to   2,147,483,647    
  unsigned   long   4   unsigned   long   int   0   to   4,294,967,295    
  enum   *   none   Same   as   int  


相关文档:

彻底搞定C指针-函数名与函数指针

 函数名与函数指针
    函数存放在内存的代码区域内,它们同样有地址,我们如何能获得函数的地址呢?
如果我们有一个int test(int a)的函数,那么,它的地址就是函数的名字,这一点如同数组一样,数组的名字就是数组的起始地址。
一 通常的函数调用
    一个通常的函数调用的例子 ......

如何理解C和C++的复杂类型声明


    曾经碰到过让你迷惑不解、类似于int * (* (*fp1) (int) ) [10];这样的变量声明吗?本文将由易到难,一步一步教会你如何理解这种复杂的C/C++声明。
  我们将从每天都能碰到的较简单的声明入手,然后逐步加入const修饰符和typedef,还有函数指针,最后介绍一个能够让你准确地理解任何C/C++声明的&ld ......

经典c/c++算法

二分查找的代码.
int bfind(int* a,int len,int val)
{
    int m = len/2;
    int l = 0;
    int r = len;
    while(l!=m && r!= m)
    {
        if(a[m] > val)
  & ......

生产者 消费者问题实现 (linux下C语言)

操作系统的一个经典问题是"生产者-消费者"问题, 这涉及同步信号量和互斥信号量的应用, 在这里,我用线程的同步和互斥来实现.
/*
* author 张文
* 2008/06/20
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <semaphore.h> ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号