Delphi、C/C++、Visual Basic数据类型的对照
来源:互联网 发布:美丽水世界mac版 编辑:程序博客网 时间:2024/05/15 03:21
Delphi、C/C++、Visual Basic数据类型的对照
================================================================================
变量类型 Delphi C/C++ Visual Basic
8位有符号整数 ShortInt char --
8位--符号整数 Byte BYTE,unsigned short Byte
16位有符号整数 SmallInt short Short
16位--符号整数 Word unsigned short --
32位有符号整数 Integer,Longint int,long Integer Long
32位--符号整数 Cardinal,LongWord unsigned 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 --
================================================================================
================================================================================
变量类型 Delphi C/C++ Visual Basic
8位有符号整数 ShortInt char --
8位--符号整数 Byte BYTE,unsigned short Byte
16位有符号整数 SmallInt short Short
16位--符号整数 Word unsigned short --
32位有符号整数 Integer,Longint int,long Integer Long
32位--符号整数 Cardinal,LongWord unsigned 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 --
================================================================================
- Delphi、C C++、Visual Basic数据类型的对照
- Delphi、C/C++、Visual Basic数据类型的对照
- Delphi、C/C++、Visual Basic数据类型的对照
- Delphi、C/C++、Visual Basic数据类型的对照
- Pascal、C / C + +、Visual Basic数据类型的对照
- Delphi 与 C/C++ 数据类型对照表
- Delphi 与 C/C++ 数据类型对照表
- Delphi 与 C/C++ 数据类型对照表
- Delphi 与 C/C++ 数据类型对照表
- Delphi 与 C/C++ 数据类型对照表
- Delphi 和 C/C++ 数据类型对照
- Delphi 与 C/C++ 数据类型对照表
- Delphi 与 C/C++ 数据类型对照表
- Delphi 与 C/C++ 数据类型对照表
- Delphi 与 C/C++ 数据类型对照表
- Delphi 与 C/C++ 数据类型对照表
- Delphi 与 C/C++ 数据类型对照表
- Pascal、C/C++、VisualBasic数据类型的对照
- Linux Signal (2): signal函数
- MD5算法
- 基于jdbc的数据库连接池技术研究与应用
- 原下的日子(节选)--陈忠实
- 学习tcp/ip的资源列表
- Delphi、C/C++、Visual Basic数据类型的对照
- 我的第一份工作-在工厂做ERP实施的日子
- ubuntu-2-配置
- 站在自己该站的位置上
- ubuntu英文环境下使用中文输入法
- c与Pascal类型对应
- 为 Web 服务构建 Struts 应用程序
- round的四舍五入原则究竟是怎样的
- MSDN使用