2012年7月10日

【转】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,tem... 阅读全文

posted @ 2012-07-10 09:20 Tony.TAO 阅读(165) 评论(0) 推荐(0) 编辑

导航