Exemplo n.º 1
0
        static void Main(string[] args)
        {
            SuperMarket market = new SuperMarket();

            market.ShowProds();
            market.AskCustomer();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            SuperMarket sp = new SuperMarket();

            sp.AskBuying();
            Console.Read();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            SuperMarket SM = new SuperMarket();

            SM.ShowPros();
            SM.AskBuying();
            Console.ReadKey();
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            //创建超市对象
            SuperMarket sm = new SuperMarket();

            //展示货物
            sm.ShowPros();
            //跟用户交互
            sm.AskBuying();
            Console.ReadKey();
        }
Exemplo n.º 5
0
        static void Main(string[] args)
        {
            //创建超市对象
            SuperMarket sm = new SuperMarket();

            //查看仓库
            sm.ShowPros();
            //与用户交互
            sm.AskBuying();
            //string s = "你好呀";
            //string path = @"C:\Users\13729\Desktop\123.txt";
            //using (FileStream fswrite = new FileStream(path, FileMode.Append, FileAccess.Write))
            //{
            //    byte[] buffer = Encoding.Default.GetBytes(s);
            //    fswrite.Write(buffer, 0, buffer.Length);

            //}
            //Console.WriteLine("OK");
            //Console.ReadKey();
            Console.ReadKey();
        }