mfc 中CString类中的Format(_T("%d,%f,%ld,%lf,%c,%s"),函数表示什么?怎么使用?
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/07 16:01:38
mfc 中CString类中的Format(_T("%d,%f,%ld,%lf,%c,%s"),函数表示什么?怎么使用?
因为我学的是c++ 对于c中的printf函数不了解!
因为我学的是c++ 对于c中的printf函数不了解!
int a = 123;
float b = 45.6;
char c = 'h';
CString d = "xyz";
CString str = "";
str.Format("%d,%f,%ld,%lf,%c,%s",a,b,a,b,c,d);
this->MessageBox(str);
输出为:123,45.599998,123,45.599998,h,xyz
float b = 45.6;
char c = 'h';
CString d = "xyz";
CString str = "";
str.Format("%d,%f,%ld,%lf,%c,%s",a,b,a,b,c,d);
this->MessageBox(str);
输出为:123,45.599998,123,45.599998,h,xyz
mfc 中CString类中的Format(_T("%d,%f,%ld,%lf,%c,%s"),函数表示什么?怎么使用?
CString str; int number=15; //str="15" str.Format(_T("%d"),n
不太明白CString中的Format();的用法,如CString str;str.Format("%d",a);是把
C语言符号表示%d %f %ld %o %c 分别表示什么?
在scanf()函数的格式说明符中,长整型数的输入格式符是 A.%ld B.%lf C.%d D.%x
请大侠解释一下CString str;str.Format(L"\n%d!=%d",n,s);这两句代码的含义,以及CS
CString strTemp; strTemp.Format ("%.*lf",3,600.0); 这句话的含义?求指
cstring.format("0")是什么意思
关于C语言中的%d和%ld
format c:/u /s什么意思
关于CString 的Format方法~
mfc 计算器中sin ,log ,和ln函数怎么写