苏飞论坛

标题: 第一章总结 [打印本页]

作者: jiaming50    时间: 2014-1-26 11:46
标题: 第一章总结
第一章总结


                给大家送上一个总结

        class Program

        {

                static void Main (string[] args)

                {

                        //设置背景色为黑色 , 设置标题 , 并初始化大小

                        Console.BackgroundColor = ConsoleColor.Black; //这句话的意思就是把窗口的背景色 显示为黑色
                        Console.Title = "SuFei.net管理系统"
                        Console.SetBufferSize(80, 25);// 这句话就是设置窗口内的缓冲区的高度和宽度设置为指定值
                        Console.SetWindowSize(80, 25);// 这句话就是将控制台窗口的高度和宽度设置为指定值
                       
                        //显示初始的欢迎界面 : 第一部分

                        Console.SetCursorPosition(28, 2);//这个是设置光标的指定位置
                        Console.ForegroundColor = ConsoleColor.Blue;//设置字体的颜色
                        Console.Write("Su Fei 管 理 系 统");//输出显示文字
                        Console.SetCursorPosition(28, 3);//设置光标位置
                        Console.Write("==================");//输出显示文字
                       
                        //第二部分

                        Console.SetCursorPosition(33, 12);
                        Console.ForegroundColor = ConsoleColor.Yellow;
                        Console.Write("SuFei.Net");
                       
                        //第三部分

                        Console.SetCursorPosition (33, 20);
                        Console.ForegroundColor = ConsoleColor.Green;
                        Console.Write("苏飞论坛 力挺飞哥");
                       
                        //书写页脚
                       
                        Console.SetCurorPositeion(31, 24);
                        Console.ForegroundColor = ConsoleColor.Red;
                        Console.Write("请按任意键进入系统");
                       
                        //界面停留
               
                        Console.Read();


纯手打.希望支持.勿喷


作者: huoshan12345    时间: 2014-1-26 13:14
记得用插入代码呦
作者: luobin    时间: 2014-1-28 09:02
mark一下,以后备用




欢迎光临 苏飞论坛 (http://www.sufeinet.com/) Powered by Discuz! X3.4