clairec icon

Untitled

clairec | PRO | 09/24/16 07:25:41 AM UTC | 0 ⭐ | 10423 👁️ | Never ⏰ | []
C++ (with Qt extensions) |

0 B

|

None

|

0 👍

/

0 👎

Enter your code here
template <typename T>
Node<T>* SLL<T>::getNode(std::size_t ind)
{
  if (ind >= size)
    {
      throw "Invalid index!";
    }
  Node<T> * j = front;
  for(std::size_t i = 0; i < size; i++)
    {
      j = j->getNext();
      i++;
    }
  return j;
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎