Thanks for showing me a few options. I had already began using negative values to represent traversing the list but decided to go with strings instead since it seemed to make things a bit clearer.
...
Type: Posts; User: Mentallic
Thanks for showing me a few options. I had already began using negative values to represent traversing the list but decided to go with strings instead since it seemed to make things a bit clearer.
...
Well, each node in my linked list is a line of text, and I'm required to - depending on user input - print out either a specific line number (hence the int lineNumber) or also if they input '+' or...
Oh I see. Is that how some common library functions such as printf and scanf work?
I remember that there was a way to pass a value into a function sometimes, but not always. If you didn't pass the value into the function, then either that variable doesn't exist for the lifetime of...