I am getting a /240 error when running my program when it should output the next car value in the list. Also the speed value is not being passed. Why is this?
Simply never (I am repeating never) write long code. I suggest you to rewrite your code step by step testing every small snip of code. Even after adding only one statement to a program always compile and execute it.
Why do we must to investigate your too long code instead of you? It is your personal problem of a programmer.