2012年6月1日

VC 数据类型转换

摘要: VC++各种类型之间的转换int i = 100;long l = 2001;float f=300.2;double d=12345.119;char username[]="程佩君";char temp[200];char *buf;CString str;_variant_t v1;_bstr_t v2;一、其它数据类型转换为字符串短整型(int)itoa(i,temp,10);///将i转换为字符串放入temp中,最后一个数字表示十进制itoa(i,temp,2); ///按二进制方式转换 长整型(long)ltoa(l,temp,10); 浮点数(float,do 阅读全文

posted @ 2012-06-01 16:43 MR赵 阅读(469) 评论(0) 推荐(0) 编辑

导航