Code:
//Study - program that allows User input/output
//for studying. Program asks User to state
//what user thinks is answer for problem at hand.
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
string char1;
cout <<"The Boy's Ball is: ";
cout <<"A. Blue.\n";
cout <<"B. Red.\n";
cin >> char1;
string Answer;
Answer = "A. Blue.";
if (char1==Answer)
{
cout <<"Correct!" <<endl;
}
system("PAUSE");
return 0;
}
This isn't all of the coding for the program that I want, I know, but I just want to get this out of the way first.