|
// Validate the input data
if (m_old.GetLength ()! = 8)
{
MessageBox ("Please enter 8 clear text", "Friendly Tips");
return;
}
This code is to verify whether the input data is 8 digits, or it will prompt to enter again. Now it is necessary to fill in 8 bits with 0 if the input data is less than 8 bits. How can prawns be realized? Please elaborate, I am a rookie just learning VC. I don't understand the format method. |
|