原创内容,转载请注明原文网址:http://homeqin.cn/a/wenzhangboke/jishutiandi/2019/0704/563.html
	CString to int: 
	如下:
	CString str = "123";
	int i;
	i = atoi(str);
	1
	2
	3
	CString to float: 
	如下:
	CString str="1.2";
	float f;
	f = atof(str);
	1
	2
	3
	int、float to CString: 
	如下:
	int i = 15;
	float f = 1.1;
	CString stri="",strf="";
	stri.Format("%d",i);
	strf.Format("%.2f",f);
上篇:上一篇:C++中map的用法详解
下篇:下一篇:c++ sscanf用法



