Remove the semicolons:
if (aa == 1);
if (aa == 2);
In C / C++ semicolon is a statement terminator: so
if (...);
is complete, and the next statement or statements will always be executed.
You might want to look at
if ... else if ... else
or
switch
instead of:
if (...)
{
...
}
if (...)
{
...
}
It's more efficient, and easier to read when you get more than one option.