示例#1
0
		static OneList MakeList (int length)
		{
			OneList rest = null;
			for (int i = 0; i < length; ++i) {
				OneList first = new OneList ();
				first.next = rest;
				rest = first;
			}
			return rest;
		}
示例#2
0
        static OneList MakeList(int length)
        {
            OneList rest = null;

            for (int i = 0; i < length; ++i)
            {
                OneList first = new OneList();
                first.next = rest;
                rest       = first;
            }
            return(rest);
        }