![]() |
|
#1
|
|||
|
|||
Trivia quiz gamei have to make a triva game and dont know vc++ well so there might be some stupid errors in there but i dont know how to fix the errors. im only 12 so go easy on me
CPP / C++ / C Code:
|
|||
|
#2
|
|||
|
|||
Re: trivia quiz gameHey, I'd like to help you but you need to be a bit more specific. Whats the problem with your code? Whats not working? What error message is your compiler giving you? lol We need somewhere to begin.
|
|
#3
|
|||
|
|||
Re: trivia quiz gameThough I dont know where you are having problems at I do see some errors with your code
CPP / C++ / C Code:
First off radiobutton3 isnt very discriptive. 2nd this shouldn't work. If you want to know if radiobutton3 is selected the code should look like this. CPP / C++ / C Code:
that semicolon after your if statement should cause an error by itself. Also your trying to compare an object to a string here which you can't do in C++. You need to tell it what part of the object you want to compare. You can compare a bunch of things in the object, you can compare the text, in the radiobuttons case you can compare the state and so on. Also dont try using global variables, try using local variables in your method handlers. And you dont have to tell your radio buttons that they are true, MSVS C++ will do it automatically for you, also the code in there is wrong so its not going to work. What programming languages do you know? |
|
#4
|
|||
|
|||
Re: trivia quiz gameok i changed some stuff but it still comes up with some 3 errors when i build this is probably a really simple thing but there all for this line
CPP / C++ / C Code:
the error codes are: 1>c:\users\ricky\desktop\stuff\projects\project\pr oject\Form1.h(236) : error C2146: syntax error : missing ';' before identifier 'ranswers' 1>c:\users\ricky\desktop\stuff\projects\project\pr oject\Form1.h(236) : error C2143: syntax error : missing ';' before 'string' 1>c:\users\ricky\desktop\stuff\projects\project\pr oject\Form1.h(236) : error C2146: syntax error : missing ';' before identifier 'answers' |
|
#5
|
|||
|
|||
Re: trivia quiz gamealso for some reason this line isnt working for some reason
CPP / C++ / C Code:
nevermind i think i fixed it |
|
#6
|
|||
|
|||
Re: trivia quiz gameQuote:
Ok not sure if this will work the way it is. Normally You need to use the + operator to append text. Try this and tell me if it works? If it does great if not then it will be a long annoying fix...proally CPP / C++ / C Code:
if that doesn't work its because its not registering ranswers and answers as a string. In this case you may need: CPP / C++ / C Code:
a side note you dont need to use the this keyword when changing the properties of your object... but it should work either way. |
|
#7
|
|||
|
|||
Re: trivia quiz gamethanks alot it work
|
|
#8
|
|||
|
|||
Re: trivia quiz gamelol np ^_^, Visual C++ can be annoying when you are starting out.
|
|
#9
|
|||
|
|||
Re: Trivia quiz gameok now i have a problem with it i want it to show how many questions you get right but for some reason it wont add one to the ranswers varaible for most questions except for some random ones i check and there is nothing diffrent from them
CPP / C++ / C Code:
|
|
#10
|
||||
|
||||
Re: Trivia quiz gameMoved 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 |
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 |
| Need help with a simple "dragon" game. | ddaigle | C++ Forum | 13 | 04-Dec-2007 06:06 |
| Tips for game troubleshooting | pcxgamer | Computer Software Forum - Games | 0 | 02-Jan-2004 05:27 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The