Professional Documents
Culture Documents
Includes
Includes
Includes
#include<new>
int main()
{
option:
system("cls");
char letter;
switch(letter)
{
case'x':
case 'X': cout<<"You choose to ADD ITEMS."<<endl;
{
char i;
string item[10];
int identificationnum[10];
int quantity[10];
for(i=0;i<10;i++)
{
cout<<endl;
cout<<"Enter item "<<i+1<<":"<<endl;
cin>>item[i];
cout<<"+++++++++++++++++++++++++"<<endl;
{
char letter;
switch (letter)
{
case 'y':
case 'Y': cout<<"You are about go back from
options."<<endl;
goto option;
break;
case 'n':
case 'N': cout<<endl<<"You are about to exit."<<endl;
break;
break;
case 'y':
case 'Y': cout<<"You choose to REMOVE ITEMS."<<endl;
break;
case 'z':
case 'Z': cout<<"You choose to QUIT the program."<<endl;
break;
default: cout<<"You typed an unacceptable character."<<endl;
cout<<endl<<"Please make sure it is a valid character."<<endl;
cout<<"Type again here. ";
goto type;
}
system("pause");
return 0;
}