日期:2014-05-19  浏览次数:20746 次

错误提示:不包含适合入口点的静态'main'方法?请高手帮我改一下这程序
class   Photo
        {
                string   _title;
                public   Photo(string   title)//构造方式,并初始化照片名
                {
                        this._title   =   title;
                }
                public   string   Title//照片名的属性
                {
                        get
                        {
                                return   _title;
                        }
                }
        }

        class   Album
        {
                Photo[]   photos;
                public   Album(int   capacity)//构造方式,并指定相册的大小
                {
                        photos=new   Photo[capacity];
                }
                public   Photo   this[int   index]
                {
                        get
                        {
                                if   (index   <   0   ||   index   > =   photos.Length)
                                {
                                        Console.WriteLine( "索引无效 ");
                                        return   null;
                                }
                                return   photos[index];
                        }
                        set
                        {
                                if   (index   <   0   ||   index   > =   photo