event.cs
来自「c#设计模式随书源码 c#设计模式随书源码」· CS 代码 · 共 34 行
CS
34 行
using System;
using System.Collections;
using CsharpPats;
namespace Seeding
{
/// <summary>
/// Summary description for Event.
/// </summary>
public abstract class Event {
protected int numLanes;
protected ArrayList swimmers;
public Event(string filename, int lanes) {
numLanes = lanes;
swimmers = new ArrayList();
//read in swimmers from file
csFile f = new csFile(filename);
f.OpenForRead ();
string s = f.readLine();
while (s != null) {
Swimmer sw = new Swimmer(s);
swimmers.Add (sw);
s = f.readLine();
}
f.close();
}
public abstract Seeding getSeeding();
public abstract bool isPrelim();
public abstract bool isFinal();
public abstract bool isTimedFinal();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?