我教你,用sprintf。
int sprintf (char * s, char * format, ...);
和printf差不多。比如:char s[0x100];
int i = 50;
sprintf (s, "The value of i is %d", i);
MessageBox (... s ...);快给分吧。
int sprintf (char * s, char * format, ...);
和printf差不多。比如:char s[0x100];
int i = 50;
sprintf (s, "The value of i is %d", i);
MessageBox (... s ...);快给分吧。
int n=10;
Float f=3.14;
double lf=3.141592675;
s.Format("%d %f %f",n,f,lf);
AfxMessageBox(s);
char s[20];
int i=100;
wsprintf(s,"hihihi:%d",i);
messageBox(NULL,s,s,0);
OK!