Write a Menu driven Inventory Program
#include
#include
#include
#define MAX_REC 10
class Inventory{
char itemName[15];
int code;
double cost;
public:
void getdata();
void showdata();
};
void Inventory :: getdata(){
cout<<"\nEnter Item Name : "; cin>>itemName;
cout<<"Enter Code : "; cin>>code;
cout<<"Enter Cost : "; cin>>cost;
}
void Inventory :: showdata(){
cout<<
cout<<"Enter "<
for(i=0;i
record[i].getdata();
cout<<"\n\n---Stock Information---\n";
cout<<"\n"<
<
<
cout<<"-------------------------------------------";
for(i=0;i
record[i].showdata();
getch();
}