幫忙看下這樣寫為什么會報錯!??!
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? int x=1;
? ? ? ? ? ? int a1;
? ? ? ? ? ? bool a = ++x * x > 3;
? ? ? ? ? ? a1==x;
? ? ? ? ? ? Console.WriteLine(x);
? ? ? ? ? ? Console.WriteLine(a1);
? ? ? ? ? ? bool b =true ;//請賦值
? ? ? ? ? ? Console.WriteLine(a==b);
? ? ? ? }
? ? }
}
2020-06-22
已經(jīng)試出來了問題出在雙==