?? pos.cs
字號:
?using System;
using System.Collections.Generic;
using System.Text;
namespace BookManager
{
public class POS
{
public double Scan(Book book)
{
double last = 0;
switch (book.Type)
{
case BookType.English:
last = new EnglishDiscount().GetNewPrice(book.UnitPrice);
break;
case BookType.Computer:
last = new ComputerDiscount().GetNewPrice(book.UnitPrice);
break;
case BookType.Story:
last =new StoryDiscount().GetNewPrice(book.UnitPrice);
break;
}
return last;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -