LoveUnix » 编程开发 & Rational » 请问如何在c语言中将字符串转换成整数,浮点数
让LU留住您的每

一天 让LU博客留住您的每一天
2005-11-18 15:28 dsr0809
请问如何在c语言中将字符串转换成整数,浮点数

请问如何在c语言中将字符串转换成整数,浮点数

2005-11-18 15:35 大漠孤星
atof- converts ASCII to floating point numbers

  atoi- converts ASCII to integers

  atol- converts ASCII to long integer numbers

2005-11-18 15:40 dsr0809
谢谢。

2005-11-22 10:17 zhln
用 sprintf 函数

2005-11-22 11:37 大漠孤星
sprintf正好是反的哦

页: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.