摘要:
1 #include <cstdio> 2 #include <iostream> 3 4 using namespace std; 5 6 int main() 7 { 8 /* 9 int atoi(const char str[])10 功能:将字符串str 转换成 一个整数值。 如果成功则返回相应的数值,失败返回 0;11 该函数仅仅处理整数,会用前要包含 cstdlib。 于此类似的还有 atof 和 atol12 分别处理浮点数和长整数13 */14 char s1[20] = "1234";15 char s2[20] = " 阅读全文
posted @ 2012-11-14 18:57
可笑痴狂
阅读(558)
评论(0)
推荐(0)