Click here to Skip to main content
15,608,738 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two classes:

SLList for methods (private SLElement _root)

SLElement for creating new elements for the list. (public int _value; public SLElement _next)

I have finished the add-method:
public void Add(int value)
  SLElement addNewElement = new SLElement();
  addNewElement._value = value;
  SLElement rootCopy = _root;
  _root = addNewElement;
  addNewElement._next = rootCopy;

So now I want a remove-function. I already got it working that it removes an element with a specific value, but I want it so that it removes an element with an specific index. How can I find out the index of the elements in my list?
Updated 6-Dec-12 4:24am
yaser shadmehr 6-Dec-12 10:23am    
it is related to C#? not OPENGL
Member 9655506 6-Dec-12 10:25am    

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900