Thanks, but stillneed more help
This is what i have so far Code:
#include <iostream.h>
int main ()
{
int i;
char input;
while (1)
{
cout <<"\n\n";
cout << " **** Increment / Decrement ****\n\n";
cout << " The present value of the internal variable is:"<< i <<endl;endl;
cout << " (I)ncrement the Internal Variable.\n";
cout << " (D)ecrement the Internal Variable.\n";
cout << " (E)xit the program.\n\n";
cout << " Select==>";
cin >> input;
switch (input)
{
case 'I':
case 'i':
i ++;
break;
case 'D':
case 'd':
i --;
break;
}
if (input == 'E' || input == 'e'){break;}
}
}
What do i need to do to fix it. The variable is showing some wierd numbers and its not updating. Its also supposed to start off at 10.