How to create a linked list ?
I'm trying co create a linked list manually and print it out as the way I known but it seems things doesn't works as I normal know, can any one help me what should I do in this situation so it can print all the number ?
12 Replies
C# has one already. Just use that
ye I know about it, but I want to practice manually, so is there anyway ?
What’s the error it gives?
something like this
i changed something so now only one error
It can’t iterate the class
is it because the reference value have to be null ?
Make a class usable in a foreach statement - C#
Describes how to make a Visual C# class usable in a foreach statement. Also describes a code sample to explain the methods.
A for loop would be easier @yatta
I'll try with it
@yatta use this: