Delphi CC++ VisualBasic数据类型的对照

                                      Delphi、C/C++、Visual   Basic数据类型的对照    
  ================================================================================    
  变量类型                           Delphi                                 C/C++                                       Visual   Basic    
  8位有符号整数                     ShortInt                                char                                         --    
  8位--符号整数                     Byte                                    BYTE,unsigned   char                        Byte    
  16位有符号整数                    SmallInt                                short                                       Short    
  16位--符号整数                    Word                                    unsigned   short                            --    
  32位有符号整数                    Integer,Longint                         int,long                                    Integer   Long    
  32位--符号整数                    Cardinal,LongWord                       unsigned  (int)或 (long)                    --    
  64位有符号整数                    Int64                                   _int64                                      --    
  4字节浮点数                       Single                                  float                                       Single    
  6字节浮点数                       Real48                                  --                                          --    
  8字节浮点数                       Double                                  double                                      Double    
  10字节浮点数                      Extnded                                 long   double                               --    
  64位货币值                        currency                                --                                          Currency    
  8字节日期/时间                    TDateTime                               --                                          Date    
  16字节                            variantVariant,                         VARIANT   Variant(注),                      Variant(缺省)    
                                            OleVariant,TVarData        OleVariant(注)    
  1字节字符                         Char                                    char                                        --    
  2字节字符                         WideChar                                WCHAR                                       --    
  固定长度字节的字符串              ShortString                             --                                          --    
  动态字符串                        AnsiString                              AnsiString(注)                              String    
  以Null结束的字符串                PChar                                   char*                                       --    
  以Null结束的宽字符串              PWideChar                               LPCWSTR                                     --    
  动态2字节字符串                   WideString                              WideString(注)                              --    
  1字节布尔值                       Boolean,ByteBool                       (任何1字节数)                                --    
  2字节布尔值                       WordBool                               (任何2字节数)                                Boolean    
  4字节布尔值                       BOOL,LongBool                          BOOL                                         --    
  =======================================================================

转载于:https://www.cnblogs.com/qdlgx/archive/2008/09/03/1282541.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值