» Tue Jan 22, 2013 5:27 pm
Sorry OP, seems my program won't cooperate with me to test things out. Seems i've been out of the loop when coding since i've never even seen a reason for the "using namespace std;" line of code. I just used C++ straight up cin and cout things.
http://www.parashift.com/c++-faq-lite/using-namespace-std.html thing about that using namespace std; thing.
Only difference I see is the FAQ putting the use tag within the main instead of outside. Another thing you might want to do is set seconds and distance = to 0 in order to prevent the program from randomly assigning numbers. *Again, it's been a good eleven years since i've really delved into C++, so I don't know how things work now. Only use what I learned to deconstruct different languages at times, from HTML and CSS to other languages like that Papyrus thing Skyrim uses.*