标准c字符和字符串的使用方法
摘要:cppreference.com -> Standard C String & Character -> 详解标准c字符和字符串atof语法: #include double atof( const char *str );功能:将字符串str转换成一个双精度数值并返回结果。 参数str 必须以有效数字开头,但是允许以“E”或“e”除外的任意非数字字符结尾。例如: x = atof( "42.0is_the_answer" );x的值为42.0.相关主题: atoi() and atol().atoi语法: #include int atoi( cons
阅读全文
posted @ 2013-09-14 08:06
浙公网安备 33010602011771号