Thanks man, I code with Arduino all the time and I'm pretty competent with it. Although I'm struggling here, this thread was posted in a fit of rage when I couldn't get it working (It's for a college assignment) I have cooled off now and will attempt again tomorrow. Thank you for your succulent reply I'm forever grateful@SeanV123 There are more problems than just that. You don't look like you know how to write C or C++ code. Things are out of order, incorrectly specified, and it's just a bit of a mess. Look at all the errors/warnings at the bottom that the compiler is trying to tell you about.
You can't expect it to operate properly unless you know what you're doing.
I would grasp C before you attempt things with C++.
This might help:
Title: Standard C [Quick Ref]
Author(s): P.J.Plauger, Jim Brodie
ISBN: 1-55615-158-6
by Aaron Carman
by Jake Hertz
by Don Wilcher
by Jake Hertz