CString str;
str.Format("%d", score);
i = str.GetLength();

解决方案 »

  1.   

    有没有搞错呀,这种问题都值这么多分!!!
    CHAR STR[10];
        int score;
        int i;
        sprintf(str, "%d", score);
        i=strlen(str);
    ..........btw.你的textout好怪呀
      

  2.   

    i = lg(score)+1;
    你觉得怎么样?
      

  3.   

    写一段程序如何:
    void f( int a , int & b )
    {
      b = 0;
      if ( a > 0 )
        while ( a )
        {
    a /= 10;
    b++;
        }
    }
      

  4.   

    to kkk16():
       score = 0 就不对了
      

  5.   

    可以了!!1
    我给分了!!
                我用的是alamb(把握今生)的方法.
      

  6.   

    有没搞错!!!我才20分啊!!!alamb的方法其实和我是一样的!!