Q:

C++ - Using specific character input for 'if' statements

I am, for lack of a better word, an absolute programming novice. And as it stands, I've been flung head first into programming something in two or three languages.
As part of an assignment, we have been tasked with essentially recreating a heads/tails flip, in the form of a random chance game.
The way it works is the player has ten credits to start off with. They are asked to input a wager, and then they are asked heads or tails. Picking either heads or tails sets off a number generator, and depending on the value, they may well end up winning or losing their wager.
I coded a similar version of this using HTML/CSS/JS, and it works. I'll leave a puush link to the file so you can view it yourselves to get an idea of what I'm trying to do: http://puu.sh/bP2V7/2ef63f4a1c.html
I'm trying to do, functionally, the same thing in C++ in the form of a command application. I know the code I'm using works fine, and it compiles without much of a hitch. It's a bit annoying that it closes down rather than resetting to a previous line, but that's a hurdle I'll jump over when I get to it.
I had a look around, and to be honest, whilst a few of the things may well work, I'm admittedly relatively clueless and some of the programmer speak kinda flies over my head. 
It's probably because I'm being thrown into it and I'm not used to it yet, but as it stands, I need your help.
My code simply works as follows (simplified to save time):
int main()
{
    int points, wager;
    points = 10;
    output "HEADS OR TAILS?";

    if (player has 1 point or more)
    {
        output "Input wager";
        input wager value;
        output "Wager is (player input)";
        output "Heads or Tails?";
        input h or t;                      //This was what I wanted

        if (player selects 'heads')        //For sake of simplicity, the code
        {                                  //here will account for both heads
            int heads;                     //and tails.
            srand(NULL);
            heads = random number 1 and 2;
            if (heads = 1)
            {
                output "HEADS!";
                output "You win 'wager'!";
                points = points + wager;
            }
            if (heads = 2)
            {
                output "TAILS!";
                output "You lose 'wager'!";
                points = points - wager;
            }
        }
    }
    if (player has 0 points)
    {
        output "GAME OVER";
    }
}

What I want to do is have the user input either an 'h' or a 't' to determine whether or not they want heads or tails.

A:

In your programming class, they will have told you what they expect you to use as tools for input and output, eg char inputChar; cin >> inputChar; or similar.  Use whatever they told you to use in the style they want you to use, eg
cout << HEADS_OR_TAILS_PROMPT;
char inputChar;
cin >> inputChar;
switch(inputChar) {
  case 'h':
  {
    ... // code for the heads case
    break;
  }
  case 't':
  {
    ... // code for the tails case
    break;
  }
  default:
    // whatever you want to do if they didn't input a valid option
}

Although, to be honest, asking your professor is going to get you a better answer for what the grader is expecting than asking us is.

