Answer to Question #42913 in C++ for wilson930612

Question #42913
#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
Expert's answer

Not answered

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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS