static void Main (string[] args) { int i; uint ui; i = -1; Console.WriteLine (i == 0xFFFFFFFF ? "Matches" : "Doesn't match"); i = -1; ui = (uint)i; Console.WriteLine (ui == 0xFFFFFFFF ? "Matches" : "Doesn't match"); Console.ReadLine (); } 上述程序的输出是: Doesn...
详细的答案是:是的,但有多个限制和警告。将0到1范围内的浮点数作为整数进行比较在许多情况下可能会...
详细的答案是:是的,但有多个限制和警告。将0到1范围内的浮点数作为整数进行比较在许多情况下可能会...