示例代码:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

 

namespace Demo2

{

    class Program

    {

        static void Main(string[] args)

        {

            int a ;

            Console.WriteLine(a);

        }

    }

}

错误       1     使用了未赋值的局部变量“a      C:\Documents and Settings\kike2008\My Documents\Visual Studio 2008\Projects\Demo2\Demo2\Program.cs 13    31    Demo2

 

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3