0x表示16进制,一位16进制可以用4位二进制表示。
0x40=0100 0000B=2^6=64D
这个应该用于选择颜色当中,具体的你不用管

解决方案 »

  1.   

    上边的不对。
       应当为int32 也就是 c#中的int 类型的极大值void main( )
    {
        Console::WriteLine( 
            S"This example of the op_Implicit conversion from " 
            S"int to Decimal \ngenerates the following output. " 
            S"It displays the Decimal value \nand its binary "
            S"representation.\n" );
        Console::WriteLine( formatter, S"int argument", 
            S"Decimal value", S"bits[3]", S"bits[2]", S"bits[1]", S"bits[0]" );
        Console::WriteLine( formatter, S"------------", 
            S"-------------", S"-------", S"-------", S"-------", S"-------" );    // Convert int values and display the results.
        DecimalFromInt32( Int32::MinValue );
        DecimalFromInt32( Int32::MaxValue );
        DecimalFromInt32( 0xFFFFFF );
        DecimalFromInt32( 123456789 );
        DecimalFromInt32( -1000000000 );
    }
      

  2.   

    在这里出现的
              private int GetValidIntValue(int val)
    {
    int num1 = val;
    if (num1 < 0)
    {
    num1 = 0;//
    }
    if (num1 > 0x7fffffff)
    {
    num1 = 0x7fffffff;
    }
    return num1;
    }
      

  3.   

    你上边所说的,和我给你上边写的一样。
    0x7fffffff
    表示int32 即 c#中的 int 类型的极大值。。
      

  4.   

    表示 int 类型 
     小于0 时为0 
     大于极大值时为极大值。
     介于二者不改变。
     主要是进行一个判断避免返回负值。。
      

  5.   

    10进制为 2,147,483,647
    Int32.MaxValue