Click here to Skip to main content
13,052,494 members (70,352 online)
Rate this:
Please Sign up or sign in to vote.
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?
Posted 6-Dec-12 4:22am
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100