Hi...im trying to implement a function called viewItem based on the description below. We are supposed to use structures and use files as well. View the item
A user is prompted to enter the name of the item she wants to view.
A (case insensitive, preferably) search should be done. If found the
item should be displayed on the screen. If not, an appropriate error
message must be displayed.
this is the structure
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
struct StockItem
{
string manufacturer;
string model;
int year;
double price;
int quantity;
};
this is the function i tried to implement using linear search.