哪不對了?
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? int year = 2015;//年份
? ? ? ? ? ? string text=year%4==0? "閏年":"平年";//請?zhí)顚懘a
? ? ? ? ? ? Console.WriteLine("今年是{0}",text);
? ? ? ? }
? ? }
}
2016-01-31
你冒號:應(yīng)該是中文輸入法時(shí)候的書寫,你重新改成英文輸入法的就可以了