Hey everyone. So i'm relatively new to all of this and have no experience. If it matters i'm using visual studio 2005.

I'm having trouble getting my switch statments to be recognized. Also I'm not very familiar with this random number generator. I get an error message on it so i assume i'm not coding it correctly. Any pointers would be great.

Also the other question i had was how do you keep track of the number correct and incorrect? Would you have to use another for loop?

Here's my code

Code:
#include "stdafx.h"
#include <iostream>
using namespace std;

int main()
{
	int num1, num2, total;
	int numpro, ansr;
	int protype;
	int A,a,B,b,C,c,x,D,d,E,e,F,f;

	const int MAXNUM = 100;
	int srand(time(NULL));
	rand() = num1;
	srand() = num2;
	
	cout << " A - Addition" ;
	cout << " B - Subtraction" ;
	cout << " C - Multiplication" ;
	cout << " D - Division" ;
	cout << " E - Random problems" ;
	cout << " F - Quit"; 

	cout << "Please select and option from the above menu." ;
	cin >> protype;

	switch (protype)
	{
		case A,a,:
			cout << " How many problems would you like to do?" ;
			cin >> numpro;
				for (numpro = 0; numpro < MAXNUM; numpro++)
				{
					cout << num1 << "+" << num2 << "=" ;
					cin >> ansr;
					total = num1 + num2;
					{
						if total == ansr
							cout << "Correct!"
						else total :! ansr
							cout << " Incorrect. The correct answer is: " << total << ;
						return 0;
					}
				}
		break;
		
		case B,b,:
			cout << " Sorry this function has not yet been implemented please try again." ;
			return 0;
			break;
		

		case C,c,:
			cout << " Sorry this function ahs not yet been implemented please try again." ;
			return 0;
			break;
		
		case D,d:
			cout << " Sorry this function has not yet been implemented, please try again." ;
			return 0;
			break;

	                case E,e:
	                                cout << " Sorry this function has not yet been implemented, please try again." ;
			return 0;
			break;

		case F:
			return 0;
			break;
	}
	cout << endl;

	return 0;
}