Commit 793e409e authored by yuz1's avatar yuz1

意见3

parent 9bf5c032
...@@ -15,6 +15,7 @@ namespace Lottery ...@@ -15,6 +15,7 @@ namespace Lottery
/// <param name="lotteries">奖项信息</param> /// <param name="lotteries">奖项信息</param>
public static void SaveResult(IReadOnlyList<Person> persons, IReadOnlyList<Lottery> lotteries) public static void SaveResult(IReadOnlyList<Person> persons, IReadOnlyList<Lottery> lotteries)
{ {
//建议先保存再输出信息,防止程序崩溃,程序就不写了
Console.Clear(); Console.Clear();
Console.WriteLine("抽奖结果" + Environment.NewLine); Console.WriteLine("抽奖结果" + Environment.NewLine);
string saveFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Result.txt"); string saveFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Result.txt");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment