15,921,203 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 14873171 (Top 3 by date)
Member 14873171
25-Jun-20 10:43am
View
when you click the button it's supposed to add +1 to addedScore when you pick the correct answer if not, no score is added and it will advance to the next question. from what i understand it's the submit button itself that checks the answers from the strings and determines if it's right or not through if/else since i don't see any separate code to check if the answers are right or wrong ;-;
Member 14873171
25-Jun-20 10:36am
View
well addedScore is defined from
int questionNo = 0, legitQuestionNo = 0, newScore = 0, oldScore = 0, addedScore = 0;
so if the answer you chose is present or matches the list of correct answers from the string correctAnsSet, +1 is added to addedScore but it doesn't do that. hope i explained that properly ;-;
Member 14873171
25-Jun-20 10:25am
View
if the answer matches any of the correct answers from the string correctAnsSet, it will add a +1 score. randNumberSet is a question randomizer.