예제 #1
0
파일: Program.cs 프로젝트: jacoloves/lab
    static void Main()
    {
        var x = new IntBool(1);
        var y = new IntBool(0);

        if (x)
        {
            Console.WriteLine("if true");
        }
        else
        {
            Console.WriteLine("if false");
        }

        Console.WriteLine(x ? "true!" : "false.");
        Console.WriteLine(x && y);
        Console.WriteLine(x || y);
        Console.WriteLine(x | y);
    }
예제 #2
0
 public void register_hs_getter(IntBool is_high_score_)
 {
     is_high_score = is_high_score_;
 }