![]() |
|
#1
|
|||
|
|||
Mikhail Gorbachev trivia quizok i have to finish this school project by wednesday but there are 2 problems the number at the end is never right (where it tells how many answers you got right) and then how can i clear the radiobuttons after each questions here it the code
Im only 13 so go easy on me CPP / C++ / C Code:
|
|||
|
#2
|
||||
|
||||
Re: mikhail gorbachev trivia quizMoved to the .NET Forum..
__________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#3
|
||||
|
||||
Re: mikhail gorbachev trivia quiz1. The correct count...
For each radiobutton check, you are checking the response one step ahead of having a selection. For example, in this condition: CPP / C++ / C Code:
2. clear the radiobuttons... One possible way is to create another function (within the Form's class) that will check all the radiobuttons, and set false for the one found true, maybe something like this: CPP / C++ / C Code:
SO, having these things in place, the code might look something like this: (only a minor example to what you've started) CPP / C++ / C Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#4
|
|||
|
|||
Re: mikhail gorbachev trivia quizthanks so much
|
|
#5
|
|||
|
|||
Re: mikhail gorbachev trivia quiznow i get 52 errors when compiling after deleting label2 and the stuff related to it
the errors all say things like this 1>c:\users\ricky\desktop\stuff\projects\project\pr oject\Form1.h(277) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body and 1>c:\users\ricky\desktop\stuff\projects\project\pr oject\Form1.h(289) : error C2059: syntax error : 'if' CPP / C++ / C Code:
|
|
#6
|
||||
|
||||
Re: mikhail gorbachev trivia quizIn the (answers == 2) block of code, it appears there is an extra lingering }. (after the radiobutton check) Mismatching these will typically cause strange errors.
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#7
|
||||
|
||||
Re: mikhail gorbachev trivia quizNote that within visual studio, using ctrl+] can be used to match pairings of {}, [], and ().
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! Last edited by TurboPT : 18-Nov-2008 at 07:29.
|
|
#8
|
|||
|
|||
Re: Mikhail Gorbachev trivia quizis there a way to add like a video that loops and plays fireworks or somthing over and over again easily if not i dont really care
|
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trivia quiz game | helpmeplz | .NET Forum | 9 | 19-Nov-2008 04:44 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The