摘要:
环境:dev-c++源代码:#include <iostream>#include <cstdlib>using namespace std;main(){ int i1=123,i2,i3; float f1; char c1[20]="234.45",c2[20]; string s1="456",s2; i2=atoi(c1); //将字符数组转化为整数 f1=atof(c1); //将字符数组转化为浮点型 itoa(i1,c2,10); //将整型转化为字符数组 10为10进制的意思 cout<<"字 阅读全文
posted @ 2012-03-09 15:53
茄子_2008
阅读(6736)
评论(0)
推荐(2)
浙公网安备 33010602011771号