|
珞珈山水BBS →
电脑网络 →
程序人生 →
单文区文章阅读
|
| 单文区文章阅读 [返回] |
|---|
|
发信人: greenlixiao (临风陨), 信区: Programm 标 题: 一些数据转换函数参考 发信站: BBS 珞珈山水站 (Thu Apr 28 18:05:32 2005) 刚才查了一下.NET的文档 得到如下: 再具体的没法全部贴,可以更具下面的自己查文档 感谢bigben给了atoi,要不然我还不知道怎么查出来 Data Conversion These routines convert data from one form to another. Generally these routines execute faster than conversions you might write. Each routine that begins wit h a to prefix is implemented as a function and as a macro. See Choosing Betwee n Functions and Macros for information about choosing an implementation. Data-Conversion Routines Routine Use : abs Find absolute value of integer atof Convert string to float atoi, _atoi64 Convert string to int atol Convert string to long _ecvt Convert double to string of specified length _fcvt Convert double to string with specified number of digits followi ng decimal point _gcvt Convert double number to string; store string in buffer _itoa, _i64toa, _itow, _i64tow Convert int to string labs Find absolut e value of long integer _ltoa, _ltow Convert long to string _mbbtombc Convert 1-byte multibyte character to corresponding 2-byte multi byte character _mbcjistojms Convert Japan Industry Standard (JIS) character to Japan Micr osoft (JMS) character _mbcjmstojis Convert JMS character to JIS character _mbctohira Convert multibyte character to 1-byte hiragana code _mbctokata Convert multibyte character to 1-byte katakana code _mbctombb Convert 2-byte multibyte character to corresponding 1-byte multi byte character mbstowcs Convert sequence of multibyte characters to corresponding sequenc e of wide characters mbtowc Convert multibyte character to corresponding wide character strtod, wcstod Convert string to double strtol, wcstol Convert string to long integer strtoul, wcstoul Convert string to unsigned long integer strxfrm, wcsxfrm Transform string into collated form based on locale-speci fic information __toascii Convert character to ASCII code tolower, towlower, _mbctolower Test character and convert to lowercase if curr ently uppercase _tolower Convert character to lowercase unconditionally toupper, towupper, _mbctoupper Test character and convert to uppercase if curr ently lowercase _toupper Convert character to uppercase unconditionally _ultoa, _ultow Convert unsigned long to string wcstombs Convert sequence of wide characters to corresponding sequence of multibyte characters wctomb Convert wide character to corresponding multibyte character _wtof Convert wide-chatacter string to a double _wtoi, _wtoi64 Convert wide-character string to int or __int64 _wtol Convert wide-character string to long 【 在 bigben (大奔,快醒醒) 的大作中提到: 】 : atoi,sprintf -- ※ 来源:·珞珈山水BBS站 http://bbs.whu.edu.cn·[FROM: 61.151.255.*] |
| [返回单文区目录] |
|
|