日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > C# >内容正文

C#

Visual Basic、C# 和 C++ 的数据类型比较(转)

發布時間:2023/12/4 C# 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Visual Basic、C# 和 C++ 的数据类型比较(转) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
類別類名說明Visual Basic 數據類型C# 數據類型C++ 托管擴展數據類型JScript 數據類型
整數Byte8 位的無符號整數。BytebytecharByte
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
SByte8 位的有符號整數。 不符合 CLS。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
SByte 無內置類型。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
sbytesigned charSByte
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
Int1616 位的有符號整數。Shortshortshortshort
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
Int3232 位的有符號整數。Integerintint - 或 -DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
longDZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
int
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
Int6464 位的有符號整數。Longlong__int64long
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
UInt1616 位的無符號整數。 不符合 CLS。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
UInt16 無內置類型。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
ushortunsigned shortUInt16
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
UInt3232 位的無符號整數。 不符合 CLS。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
UInt32 無內置類型。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
uintunsigned int - 或 -DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
unsigned longDZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
UInt32
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
UInt6464 位的無符號整數。 不符合 CLS。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
UInt64 無內置類型。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
ulongunsigned __int64UInt64
浮點Single單精度(32 位)浮點數字。Singlefloatfloatfloat
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
Double雙精度(64 位)浮點數字。Doubledoubledoubledouble
邏輯Boolean布爾值(真或假)。Booleanboolboolbool
其他CharUnicode(16 位)字符。Charcharwchar_tchar
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
Decimal96 位十進制值。DecimaldecimalDecimalDecimal
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
IntPtr大小取決于基礎平臺(32 位平臺上為 32 位值,64 位平臺上為 64 位值)的有符號整數。IntPtr 無內置類型。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
IntPtr 無內置類型。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
IntPtr 無內置類型。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
IntPtr
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
UIntPtr大小取決于基礎平臺的無符號整數(32 位平臺上為 32 位值,64 位平臺上為 64 位值)。 不符合 CLS。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
UIntPtr 無內置類型。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
UIntPtr 無內置類型。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
UIntPtr 無內置類型。DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
UIntPtr
類對象Object對象層次結構的根。ObjectobjectObject*Object
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
StringUnicode 字符的不變的定長串。StringstringString*String
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
平臺調用數據類型 DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
DZX7¢?&dot÷ [url]www.cnntec.com[/url]¨…gúT??se
Wtypes.h 中的非托管類型非托管 C 語言類型托管類名說明
HANDLEvoid*System.IntPtr32 位
BYTEunsigned charSystem.Byte8 位
SHORTshortSystem.Int1616 位
WORDunsigned shortSystem.UInt1616 位
INTintSystem.Int3232 位
UINTunsigned intSystem.UInt3232 位
LONGlongSystem.Int3232 位
BOOLlongSystem.Int3232 位
DWORDunsigned longSystem.UInt3232 位
ULONGunsigned longSystem.UInt3232 位
CHARcharSystem.Char用 ANSI 修飾。
LPSTRchar*System.StringSystem.StringBuilder用 ANSI 修飾。
LPCSTRConst char*System.StringSystem.StringBuilder用 ANSI 修飾。
LPWSTRwchar_t*System.StringSystem.StringBuilder用 Unicode 修飾。
LPCWSTRConst wchar_t*System.StringSystem.StringBuilder用 Unicode 修飾。
FLOATFloatSystem.Single32 位
DOUBLEDoubleSystem.Double64 位

轉載于:https://blog.51cto.com/dotnet/63448

總結

以上是生活随笔為你收集整理的Visual Basic、C# 和 C++ 的数据类型比较(转)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。