spartan118 0 Newbie Poster

Figured problem out. Please delete post.

-- original text --

hey all
I'm a novice C++ programmer and I'm stumped on a console app I'm trying to build

#include <windows.h>
#include <stdlib.h>
#include <tchar.h>
#include <iomanip>
#include <stdio.h>
#include <time.h>
#include <Winuser.h>
#include <atlbase.h>
#include <iostream>
#include <conio.h>
#include <direct.h>

using namespace std;

int main ()
{
char a;
cout << "Welcome to theCrusader's" << endl;
cout << "FalloutĀ© 3 Installer" << endl;
cout << "Please choose from the following options" << endl;
cout << "1. Install Fallout 3" << endl;
cout << "2. Install Fallout 3 Mod Manager" << endl;
cout << "3. Exit" << endl;

cin a; //having my problems on this line only and its driving me CRAZY!!!!!
if((a=='1')||(a=='1')) {
cout << "Installing FalloutĀ© 3. Please wait..." << endl;
CreateDirectory ("c:\\Program Files\\Bethsoft", NULL);
ShellExecute(NULL, NULL, "c:\\multi-installer\\fallout3\\autoextract.exe", NULL, NULL, SW_SHOW);
}

if((a=='2')||(a=='2')) {
ShellExecute(NULL, NULL, "c:\\multi-installer\\fallout3\\fomminstaller.exe", NULL, NULL, SW_SHOW);
}

if((a=='3')||(a=='2')) {
system("pause"); //don't worry about this, its work in progress
}


return (0);
}

Where cin a; is I keep getting an error

error C2146: syntax error : missing ';' before identifier 'a'

Any help would be appreciated