Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: C++ linked list HELP!!!  (Read 6472 times)

0 Members and 1 Guest are viewing this topic.

bentzord

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Unknown
    C++ linked list HELP!!!
    « on: July 18, 2018, 08:07:57 AM »
    Hi. I'm having trouble understanding how to write a linked list in c++. I have to create one for a school assignment but I cannot figure out how to access certain nodes from the list. I know how a linked list works, but I just get so confused over all the pointer usage and stuff. If someone, anyone, can provide a simple, clear, and easy to understand example of how to implement a linked list, it will be GREATLY appreciated. Thank you :)

    nil

    • Global Moderator


    • Intermediate
    • Thanked: 15
      • Experience: Experienced
      • OS: Linux variant
      Re: C++ linked list HELP!!!
      « Reply #1 on: July 18, 2018, 09:37:34 AM »
      Can you post the code you've written already?  :)
      Do not communicate by sharing memory; instead, share memory by communicating.

      --Effective Go

      Geek-9pm


        Mastermind
      • Geek After Dark
      • Thanked: 1026
        • Gekk9pm bnlog
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10
      Re: C++ linked list HELP!!!
      « Reply #2 on: July 18, 2018, 12:07:28 PM »
      Have you already done a Google search?
      https://www.youtube.com/watch?v=o5wJkJJpKtM
      What text book or tutorial are yo using?
      https://www.cprogramming.com/tutorial/lesson15.html
      If you need a textbook,ask your instructor .   8)