I'm trying to study for my A+ exam, and in doing so I am having trouble finding a free computer program that asks relevant questions. With that being said, I'm looking to build my own which will help myself, and possbily future generations. My problem is, that I don't know if I'm starting off on the right foot....any suggestions:

void main()
{
   string answer;
   int score:

   while (true)
   {
   cout << "SVGA is represented by all of the following except which one?" << endl;
   cout << "(A) 1600 x 1200" << endl;
   cout << "(B) 800 x 600" << endl;
   cout << "(C) 640 x 480" << endl;
   cout << "(D) 1280 x 1024" << endl;
   cin >> answer;

   if (answer == C || answer == c)
	cout << "Correct!";
   else
	cout << "Incorrect...Please try again" << endl;
   }
}
Member Avatar for iamthwee

Seems like a great waste of time to me?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.