Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Wu dynasty
13
Years of Service
User Offline
Joined: 7th Feb 2013
Location: In a democracy
Posted: 15th Mar 2013 16:36
I would like to have help to keep track of how many you get right/wrong.

This is a portion of my code. HOw can I keep track of how many right and wrongs there are?
Thanks,
Nathan

You are entering the Wu Dynasty. Boomshakalaka
-Nathan
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 15th Mar 2013 17:40
inc RightAnswer
print "Correct: ";RightAnswer


inc WrongAnswer
print "Incorrect: ";WrongAnswer

D.D.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 16th Mar 2013 00:56 Edited at: 16th Mar 2013 00:58
May I suggest the use of arrays for your questions as that method is going to be very hard to maintain when you add more questions.

I'd suggest something liks this...



I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 16th Mar 2013 23:39
The thread title is misleading.

http://mattsmith.carbonmade.com/

Login to post a reply

Server time is: 2026-07-07 00:50:40
Your offset time is: 2026-07-07 00:50:40