我在用Static显示随机数时有时没有显示,不知是怎么回事?
      srand(time(NULL));
int temp=rand()%10;
m_static1.Format("%s",temp);
m_static1是一个Static控件的成员变量