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