On a side note, you can set your case statements to actual words if you store them in an enumuation.


enum Options
{
GET = 'G',
STORE = 'S'
};

switch ( choice ) // let us assume...