Answer to Question #42913 in C++ for wilson930612
#ifndef TI_H
#define TI_H
#include<string>
class pharmacy{
public:
pharmacy();
int size;
void insert();
void print();
//void printname();
void sortid();
void sortname();
void simplesearchid(int);
void binaryname(string);
private:
struct data{
string name;
int id;
double price;
int unit;
};
data stock[5];
};
#endif
this is the header file and should i declare first,last and middle as integers or use string in binary search to search name??
0
Answer in progress...
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment