i want to know how to create a menu, in this case a bank menu for 100 50 20 and 10. i want it so you can press right to choose the next option to the right and if you press left it goes one option to the left. when it is selcted i want the value to be saved into a variable. heres what i have so far:
Code:
#include <conio.h>
#include <iostream>
#include <windows.h>

using namespace std;

int main()
{
    int character;
    int x=0, i=5;
    do
    {
    character=getch();
    if (character==77)
    {
      i=i+4;
      cout << i;
    }
    if (character==75)
    {
      i=i-4;
      cout << 1;
    }
    else
    {
      cout << character;
    }
    getch();
    system("cls");
    }
    while (i<20);
    return 0;
}
i was trying to figure it out beacuse i thought you would use highlighting by columns and rows. all i know is that the background and text color for that particular output needs to change when it is selscted. i know that attempt was poor but i really need some help. thanks.