Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - C++ CString is "F 10". How to increase the number 10 in it ~
C++ CString is "F 10". How to increase the number 10 in it ~
Define an integer variable to change its value between 0 and 9, and then Format it with the format function of CString class, for example:

CString? strMsg

CString? strTmp

For what? (int? Me? =? 0; ? Me? & lt 10; ? i++)

{

strTmp。 Format ("F 1%d", i);

strMsg? +=? strTmp? +? ”\ r \ n”;

}

MessageBox(strMsg, "test"); Test screenshot: