Click here to Skip to main content
15,889,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Making an adaptive studying application Pin
rbwest8627-Jan-10 17:32
rbwest8627-Jan-10 17:32 
GeneralRe: Making an adaptive studying application Pin
«_Superman_»27-Jan-10 18:44
professional«_Superman_»27-Jan-10 18:44 
GeneralRe: Making an adaptive studying application Pin
rbwest8627-Jan-10 18:51
rbwest8627-Jan-10 18:51 
GeneralRe: Making an adaptive studying application Pin
«_Superman_»27-Jan-10 18:55
professional«_Superman_»27-Jan-10 18:55 
GeneralRe: Making an adaptive studying application Pin
rbwest8627-Jan-10 19:06
rbwest8627-Jan-10 19:06 
GeneralRe: Making an adaptive studying application Pin
«_Superman_»27-Jan-10 19:16
professional«_Superman_»27-Jan-10 19:16 
GeneralRe: Making an adaptive studying application Pin
rbwest8627-Jan-10 22:10
rbwest8627-Jan-10 22:10 
GeneralRe: Making an adaptive studying application Pin
rbwest8628-Jan-10 3:30
rbwest8628-Jan-10 3:30 
Ok, this is what I have so far:
// Robs N+ test question overview

#include <iostream>
#include <string>

using namespace std;

int main()
{

// Local Variables
int userinput;
int inputcounter = -1;
int correctanswer;
int wronganswer;
int choice;
int A,a,B,b,C,c,D,d;


// Welcome Message
cout << "Roberts Network+ Test Questions" << endl;
cout << endl;
cout << endl;
cout << "Please Select a Chapter:" << endl;
cout << "Chapter One = 1" << endl;
cout << "Chapter Two = 2" << endl;
cout << "Chapter Three = 3" << endl;
cout << "Chapter Four = 4" << endl;
cout << "Chapter Five = 5" << endl;
cout << "Chapter Six = 6" << endl;
cout << "Chapter Seven = 7" << endl;
cout << "Chapter Eight = 8" << endl;
cout << "Chapter Nine = 9" << endl;
cout << "Chapter Ten = 10" << endl;
cout << "Chapter Eleven = 11" << endl;
cout << "Chapter Twelve = 12" << endl;
cout << "Chapter Thirteen = 13" << endl;
cout << "Chapter Fourteen = 14" << endl;
cout << "Chapter Fifteen = 15" << endl;
cout << endl;
cin >> choice;
     
// START SWITCH
switch (choice)
{
case 1: goto chapterone;
break;
case 2: goto chaptertwo;
break;
case 3: goto chapterthree;
break;
case 4: goto chapterfour;
break;
case 5: goto chapterfive;
break;
case 6: goto chaptersix;
break;
case 7: goto chapterseven;
break;
case 8: goto chaptereight;
break;
case 9: goto chapternine;
break;
case 10: goto chapterten;
break;
case 11: goto chaptereleven;
break;
case 12: goto chaptertwelve;
break;
case 13: goto chapterthirteen;
break;
case 14: goto chapterfourteen;
break;
case 15: goto chapterfifteen;
break;
default: cout << "Error, invalid entry." << endl;
}

// Start While
while (inputcounter <= 20)
{
// Chapter One
chapterone:
system("cls");
// Question 1
cout << "Fill in the blank." << endl;
cout << "Loosely defined, a ____ is a group of computers and other devices (such as printers) that are connected by some type of transmission media." << endl;
cout << "A.)Network " " B.)Router " " C.)Switch " " D.)Internet " << endl;   
cin >> userinput, inputcounter ;
++inputcounter ;

// Start If Statement
if (userinput == B || userinput == b || userinput == C || userinput == c || userinput == D || userinput == d)
{
cout << "Sorry, that was a wrong answer." << endl;
++wronganswer ;
}
else
{
cout << "Congradulations, your answer is correct!" << endl;
++correctanswer ;
}
system("cls");

// Question 2
cout << "Fill in the blank." << endl;
cout << "Loosely defined, a ____ is a group of computers and other devices (such as printers) that are connected by some type of transmission media." << endl;
cout << "A.)Network " " B.)Router " " C.)Switch " " D.)Internet " << endl;   
cin >> userinput, inputcounter ;
++inputcounter ;

// Start If Statement
if (userinput == B || userinput == b || userinput == C || userinput == c || userinput == D || userinput == d)
{
cout << "Sorry, that was a wrong answer." << endl;
++wronganswer ;
}
else
{
cout << "Congradulations, your answer is correct!" << endl;
++correctanswer ;
}
system("cls");

}


// Chapter Two
chaptertwo:
// Chapter Three
chapterthree:
// Chapter Four
chapterfour:
// Chapter Five
chapterfive:
// Chapter Six
chaptersix:
// Chapter Seven
chapterseven:
// Chapter Eight
chaptereight:
// Chapter Nine
chapternine:
// Chapter Ten
chapterten:
// Chapter Eleven
chaptereleven:
// Chapter Twelve
chaptertwelve:
// Chapter Thirteen
chapterthirteen:
// Chapter Fourteen
chapterfourteen:
// Chapter Fifteen
chapterfifteen:

// Display Results to the User
cout << "Your score is " << (correctanswer - wronganswer);
      
return 0;
}




So after reading my source, what are some of the multiple problems I have so far? Please keep in mind that I am trying my hardest to make sense of things and looking online for every possible resource I can.

Thank you in advance.

V/R

Rob
QuestionHow to retrieve request contents in an ISAPI filter? Pin
jackzhangca27-Jan-10 11:05
jackzhangca27-Jan-10 11:05 
QuestionConverting calloc to new. Pin
BubbaGeeNH27-Jan-10 10:15
BubbaGeeNH27-Jan-10 10:15 
AnswerRe: Converting calloc to new. Pin
Chris Losinger27-Jan-10 10:27
professionalChris Losinger27-Jan-10 10:27 
GeneralRe: Converting calloc to new. Pin
Nemanja Trifunovic27-Jan-10 11:06
Nemanja Trifunovic27-Jan-10 11:06 
GeneralRe: Converting calloc to new. Pin
Chris Losinger27-Jan-10 11:09
professionalChris Losinger27-Jan-10 11:09 
AnswerRe: Converting calloc to new. Pin
Nemanja Trifunovic27-Jan-10 11:14
Nemanja Trifunovic27-Jan-10 11:14 
QuestionUnsigned Template Parameter [Solved] Pin
Skippums27-Jan-10 9:04
Skippums27-Jan-10 9:04 
AnswerRe: Unsigned Template Parameter Pin
Richard Andrew x6427-Jan-10 9:20
professionalRichard Andrew x6427-Jan-10 9:20 
GeneralRe: Unsigned Template Parameter Pin
Emilio Garavaglia27-Jan-10 9:43
Emilio Garavaglia27-Jan-10 9:43 
GeneralRe: Unsigned Template Parameter Pin
Skippums27-Jan-10 10:10
Skippums27-Jan-10 10:10 
Questioncompile a class Pin
mathy27-Jan-10 8:28
mathy27-Jan-10 8:28 
AnswerRe: compile a class Pin
Rajesh R Subramanian27-Jan-10 8:52
professionalRajesh R Subramanian27-Jan-10 8:52 
AnswerRe: compile a class Pin
loyal ginger27-Jan-10 8:53
loyal ginger27-Jan-10 8:53 
QuestionRe: compile a class Pin
mathy27-Jan-10 21:30
mathy27-Jan-10 21:30 
AnswerRe: compile a class Pin
loyal ginger28-Jan-10 1:43
loyal ginger28-Jan-10 1:43 
AnswerRe: compile a class Pin
CPallini27-Jan-10 11:00
mveCPallini27-Jan-10 11:00 
QuestionDLL "organization" ? Pin
Vaclav_27-Jan-10 7:13
Vaclav_27-Jan-10 7:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.