• 大小: 21KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-11
  • 语言: C#
  • 标签:

资源简介

点菜系统源码下载,适合C#初学者,是我自己做的。

资源截图

代码片段和文件信息

using System;
class Menu

        {public static void Main()
        {
            string styleorder;
            do
            {
                Console.WriteLine (“\n\n点菜系统“);
                Console.WriteLine (“========\n“);
                Console .WriteLine (“1.中餐“);
                Console.WriteLine (“2.西餐“);
                Console .WriteLine (“0.退出“);
                Console.Write(“\n请输入你的选择编号按Enter结束:“);
                    style=Console .ReadLine ();
                if(style==“1“)
                {
                    do{
                        Console.WriteLine (“\n\n中餐“);
                        Console.WriteLine (“=======\n“);
                        Console.WriteLine (“ 1.麻婆豆腐“);
                        Console.WriteLine (“2.京酱肉丝“);
                        Console.WriteLine (“3.洋葱肉丝“);
                        Console.WriteLine (“0.退出“);

                        Console.Write(“\n请你输入你的选择的编号按Enter结束“);
                        order=Console .ReadLine ();
                        string dish;
                        switch (order)
                        {
                            case “0“:
                                break;
                            case “1“:
                                dish=“麻婆豆腐“;
                                    Console.WriteLine (“\n\n你的选择是:中餐->{0} “dish);
                                        break;
                             case  “2“:
                                dish=“ 京酱肉丝“;
                                    Console .WriteLine (“\n\n你的选择是:中餐->{0} “dish);
                                    break;
                            case “3“:
                                dish =“洋葱肉丝“;
                                    Console .WriteLine (“\n\n你的选择是:中餐->{0} “dish);
                                        break;
                            default :
                                continue;}
                    }
                    while(order !=“0“);
                }
                else if(style==“2“)
                {do{
                        Console.WriteLine (“\n\n 西餐“);
                        Console.WriteLine (“=======\n“);
                        Console.WriteLine (“ 1.牛排“);
                        Console.WriteLine (“2.沙拉“);
                        Console.WriteLine (“3.汉堡“);
                        Console.WriteLine (“0.退出“);

                        Console.Write(“\n请你输入你的选择的编号按Enter结束“);
                        order=Console .ReadLine ();
                        string dish;
                        switch (order)
                        {
                            case “0“:
                                break;
                            case “1“:
                                dish=“牛排“;

                                    Console.WriteLine (“\n\n你的选择是:西餐->{0} “dish);
                                        break;
                             case “2“:
                                dish=

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1380  2008-10-02 21:53  点菜系统\点菜系统\Properties\AssemblyInfo.cs

     文件       2497  2008-10-02 21:53  点菜系统\点菜系统\点菜系统.csproj

     文件        490  2007-07-21 01:33  点菜系统\点菜系统\bin\Debug\点菜系统.vshost.exe.manifest

     文件      14328  2008-10-02 22:40  点菜系统\点菜系统\bin\Debug\点菜系统.vshost.exe

     文件       5632  2008-10-02 22:40  点菜系统\点菜系统\bin\Debug\点菜系统.exe

     文件      13824  2008-10-02 22:40  点菜系统\点菜系统\bin\Debug\点菜系统.pdb

     文件        344  2008-10-02 22:40  点菜系统\点菜系统\obj\Debug\点菜系统.csproj.FileListAbsolute.txt

     文件      13824  2008-10-02 22:40  点菜系统\点菜系统\obj\Debug\点菜系统.pdb

     文件       5632  2008-10-02 22:40  点菜系统\点菜系统\obj\Debug\点菜系统.exe

     文件       3922  2008-10-02 22:35  点菜系统\点菜系统\Program.cs

     文件        926  2008-10-02 21:53  点菜系统\点菜系统.sln

    ..A..H.     10752  2008-10-02 22:40  点菜系统\点菜系统.suo

     目录          0  2008-10-02 21:53  点菜系统\点菜系统\obj\Debug\TempPE

     目录          0  2008-10-02 21:53  点菜系统\点菜系统\bin\Debug

     目录          0  2008-10-02 21:53  点菜系统\点菜系统\obj\Debug

     目录          0  2008-10-02 21:53  点菜系统\点菜系统\Properties

     目录          0  2008-10-02 21:53  点菜系统\点菜系统\bin

     目录          0  2008-10-02 21:53  点菜系统\点菜系统\obj

     目录          0  2008-10-02 21:53  点菜系统\点菜系统

     目录          0  2008-10-02 21:53  点菜系统

----------- ---------  ---------- -----  ----

                73551                    20


评论

共有 条评论

相关资源