Wisdom In() { Wisdom ws = null; int k; ifst >> k; ws = Make(k); if (ws) { ws.InData(ifst); } return(ws); }
static Wisdom Make(int key) { Wisdom wisdom = null; WisdomFactory tmp = top; while (tmp) { wisdom = tmp.Create(key); if (wisdom) { return(wisdom); } tmp = tmp.next; } }
public static Wisdom Make(int key) { Wisdom w = null; WisdomFactory tmp = top; while (tmp != null) { w = tmp.Create(key); if (w != null) { return(w); } tmp = tmp.next; } return(null); }
public void Add(Wisdom item) { var key = item.GetHash(items.Length); items[key].Nodes.Add(item); }