Hi guys , i am writing a project that asks us to create a linked list with numbers, print the numbers, and reverse the linked test and print the numbers again. However, my while loop does not work and it terminates the program after printing the numbers (Thus didnt execute the rest of the program). I am wondering if anyone can help me spot if something i should change in my code.
Yeah for some reason it's not detecting your pointer as NULL even though you set it to that value. Try nullptr instead, maybe? Don't really know what to tell you.