Exemple #1
0
        public void NodesSize()
        {
            LinkedNodes <double> ln = new LinkedNodes <double>();
            int  i       = 0;
            Node current = _first;

            while (current != null)
            {
                current = current.next;
                i       = i + 1;
                if (current == null)
                {
                    Console.WriteLine("Node count: " + i);

                    ln.AddNodes(i);
                }
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            LinkedNodes <double> ln = new LinkedNodes <double>();


            ln.AddNodes(8);
            ln.AddNodes(11.2);
            ln.AddNodes(12.4);
            ln.AddNodes(19);

            ln.RemoveNodes(11.2);

            ln.NodesSize();

            ln.PrintNodes();



            Console.ReadKey();
        }