[申请加精]C 精华基础贴[水木清华]
八进制:以数字0开头
十六进制:以0x或者0X开头
Q:如何实现 字符串<=>各种数字类型 的转换?
A:通用的方法:sprintf 实现数字=>字符串
sscanf 实现字符串=>数字
其他方法:字符串=>数字 atoi atof atol分别实现字符串到int、double、long的转换
数字=>字符串 _itoa _ltoa分别实现int、long到字符串的转化,
其中double=>string比较特殊,有_ecvt _fcvt _gcvt
如果使用MFC的CString类,还可以使用.Format方法。
http://community.csdn.net/Expert/topicview.asp?id=5180890
他们设置了哪些标签:
[申请加精]C [申请加精]C++精华基础贴[水木清华] 0019 180人回贴 C C&C++ C/C++ C/C++技术 C++ C++Excellent c++基础帖 C++经典 C++精华基础 C++精华基础贴 cpp C基础 c语言 job PlusPlus精华 unread VC与C++ 编程 基础 技术 精华 精华基础 精华基础贴 精华基础贴[水木清华] 水木清华 学习
谁收藏了这个网址:
时间:2006-11-24 9:23:47 | 相关网摘
精华贴
时间:2006-11-24 12:38:32 | 相关网摘
时间:2006-11-24 12:44:20 | 相关网摘
时间:2006-11-24 13:19:46 | 相关网摘
时间:2006-11-24 15:06:44 | 相关网摘
使用标签:C++,时间:2006-11-24 15:29:06 | 相关网摘
时间:2006-11-24 17:17:31 | 相关网摘
时间:2006-11-24 17:42:15 | 相关网摘
时间:2006-11-24 17:57:50 | 相关网摘
时间:2006-11-24 18:39:50 | 相关网摘
时间:2006-11-24 18:55:13 | 相关网摘
时间:2006-11-24 19:46:11 | 相关网摘
使用标签:C,时间:2006-11-25 10:35:17 | 相关网摘
时间:2006-11-25 22:31:30 | 相关网摘
时间:2006-11-26 0:15:49 | 相关网摘
八进制:以数字0开头
十六进制:以0x或者0X开头
Q:如何实现 字符串<=>各种数字类型 的转换?
A:通用的方法:sprintf 实现数字=>字符串
sscanf 实现字符串=>数字
其他方法:字符串=>数字 atoi atof atol分别实现字符串到int、double、long的转换
数字=>字符串 _itoa _ltoa分别实现int、long到字符串的转化,
其中double=>string比较特殊,有_ecvt _fcvt _gcvt
如果使用MFC的CString类,还可以使用.Format方法。
时间:2006-11-26 12:29:03 | 相关网摘
时间:2006-11-26 12:31:26 | 相关网摘
时间:2006-11-26 15:11:26 | 相关网摘
时间:2006-11-26 15:44:14 | 相关网摘
时间:2006-11-26 16:32:51 | 相关网摘
时间:2006-11-26 16:45:02 | 相关网摘
时间:2006-11-26 17:49:50 | 相关网摘
时间:2006-11-26 21:44:04 | 相关网摘
时间:2006-11-26 22:36:27 | 相关网摘
时间:2006-11-27 1:52:07 | 相关网摘
时间:2006-11-27 9:03:14 | 相关网摘
时间:2006-11-27 9:06:09 | 相关网摘
时间:2006-11-27 10:48:27 | 相关网摘
时间:2006-11-27 10:51:46 | 相关网摘
时间:2006-11-27 10:59:41 | 相关网摘
时间:2006-11-27 11:12:09 | 相关网摘
时间:2006-11-27 11:30:43 | 相关网摘
使用标签:C, 精华基础贴,时间:2006-11-27 11:44:26 | 相关网摘
C 精华基础贴
使用标签:C++,时间:2006-11-27 11:59:53 | 相关网摘
时间:2006-11-27 12:07:55 | 相关网摘
时间:2006-11-27 12:58:21 | 相关网摘
时间:2006-11-27 13:03:33 | 相关网摘
使用标签:C/C++,时间:2006-11-27 13:43:35 | 相关网摘
C 精华基础贴
时间:2006-11-27 14:05:13 | 相关网摘
使用标签:C语言,时间:2006-11-27 14:21:29 | 相关网摘
时间:2006-11-27 14:28:29 | 相关网摘
时间:2006-11-27 16:19:46 | 相关网摘
时间:2006-11-27 16:28:46 | 相关网摘
时间:2006-11-27 16:35:50 | 相关网摘
时间:2006-11-27 16:37:13 | 相关网摘
时间:2006-11-27 16:46:07 | 相关网摘
时间:2006-11-27 17:30:37 | 相关网摘
时间:2006-11-27 18:14:35 | 相关网摘
时间:2006-11-27 18:41:43 | 相关网摘
时间:2006-11-27 18:43:00 | 相关网摘
时间:2006-11-27 19:58:10 | 相关网摘
时间:2006-11-27 21:26:26 | 相关网摘
时间:2006-11-27 22:51:46 | 相关网摘
时间:2006-11-27 23:08:25 | 相关网摘
时间:2006-11-28 0:30:27 | 相关网摘
使用标签:C++经典,时间:2006-11-28 8:45:02 | 相关网摘
学习C++的 经典
使用标签:Cpp,时间:2006-11-28 9:36:33 | 相关网摘
时间:2006-11-28 9:52:19 | 相关网摘
时间:2006-11-28 9:59:56 | 相关网摘
时间:2006-11-28 10:04:22 | 相关网摘
时间:2006-11-28 10:52:33 | 相关网摘
精华贴
时间:2006-11-28 10:53:02 | 相关网摘
时间:2006-11-28 11:29:25 | 相关网摘
时间:2006-11-28 11:32:40 | 相关网摘
时间:2006-11-28 11:37:13 | 相关网摘
时间:2006-11-28 11:58:39 | 相关网摘
时间:2006-11-28 12:07:01 | 相关网摘
study
时间:2006-11-28 12:10:58 | 相关网摘
时间:2006-11-28 12:15:07 | 相关网摘
时间:2006-11-28 13:23:57 | 相关网摘
时间:2006-11-28 13:24:34 | 相关网摘
时间:2006-11-28 13:26:55 | 相关网摘
时间:2006-11-28 13:59:35 | 相关网摘
时间:2006-11-28 14:10:38 | 相关网摘
时间:2006-11-28 15:29:06 | 相关网摘
时间:2006-11-28 15:41:50 | 相关网摘
使用标签:C, 精华基础贴,时间:2006-11-28 16:01:32 | 相关网摘
C 精华基础贴
时间:2006-11-28 18:37:32 | 相关网摘
good
时间:2006-11-28 19:26:07 | 相关网摘
使用标签:编程,时间:2006-11-28 21:00:26 | 相关网摘
时间:2006-11-28 23:03:08 | 相关网摘
时间:2006-11-29 0:01:07 | 相关网摘
时间:2006-11-29 0:37:14 | 相关网摘
时间:2006-11-29 9:01:12 | 相关网摘
时间:2006-11-29 9:08:36 | 相关网摘
时间:2006-11-29 9:13:53 | 相关网摘
test