true 字面常数

表示布尔值 true。

示例

C#
class TrueTest
{
    static void Main() 
    {
        bool a = true;
        Console.WriteLine( a ? "yes" : "no" );
    }
}
/*
Output:
yes
*/
本在线速查手册由www.w〔3〔x〔u〔e.com提供,请勿盗用!