Hello!
Originally Posted by
nvoigt
. Insert some bad values as parameters in these linked list functions and you will see how they work ( and fail to do what is needed in this example
)
Do you mean stuff like this
Code:
G:\coding\cs\linked_list\bin\Debug>linkedlist
Unbehandelte Ausnahme: System.FormatException: Die Eingabezeichenfolge hat das f
alsche Format.
at System.Text.StringBuilder.FormatError()
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String fo
rmat, Object[] args)
at System.String.Format(IFormatProvider provider, String format, Object[] arg
s)
at System.IO.TextWriter.WriteLine(String format, Object arg0)
at System.IO.SyncTextWriter.WriteLine(String format, Object arg0)
at System.Console.WriteLine(String format, Object arg0)
at linkedlist.List.move_to_node(Int32 k) in g:\coding\cs\linked_list\Class.cs
:line 44
at linkedlist.List.insert_node(ListNode a_node, Int32 position) in g:\coding\
cs\linked_list\Class.cs:line 52
at linkedlist.Test.Main() in g:\coding\cs\linked_list\Class.cs:line 130
G:\coding\cs\linked_list\bin\Debug>
Originally Posted by
nvoigt
. If you understood linked lists in C#,
Yes the principle is close to the C or C++ version.
I was expecting some more complex examples (not that this wouldn't be enought, its ok for my tiny project) and more OO style like STL solution for C#.
...
I've never dealed or wanted to deal with exceptions (not in Java nor in C++) somehow i intend to use the classic way.