Click here to Skip to main content
15,902,869 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
please any one help me in this code this is my first C++ project
Write a program that store information of pharmacy system in sequential text file (.txt) where store some fields like :
1) drug ID "primary key "
2) drug name
3) price
4) type of package " capsules , syrup , ointment ..."
and the project do this operations :
1) write a new drug in the file that enter later in the pharmacy
2) if you enter drug found in the file you must update drug amount field only
3) read the entire pharmacy
4) search a record by drug ID, drug name , and type of package fields
5) delete any record from the pharmacy by drug ID

"all data retrieve from the file show in table form &the pharmacy file must contain at least 15 record as sample data &you can determine the file size as approximate form what it mean "
Posted
Updated 8-May-10 9:28am
v3
Comments
Smithers-Jones 10-May-10 7:56am    
And once again, I have a really bad feeling: Whenever somebody, who has clearly no clue, asks about help with a medical software, I get this pricking pain in my innards. Hopefully I never have to rely on this programme!

Is this really supposed to be a serious question? If you really have no idea how to even start with your project then you may be in the wrong industry.
 
Share this answer
 
osaca wrote:
please any one help me in this code this is my first C++ project

Just the code for this? :doh:

Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues.

Members will be more than happy to help like this.
Please start on your project based on what you have learnt till now...
 
Share this answer
 
Comments
yayehcsed 3-Sep-13 6:11am    
please any one help me in this code this is my first C++ project
Write a program that store information of pharmacy system in sequential text file (.txt) where store some fields like :
1) drug ID "primary key "
2) drug name
3) price
4) type of package " capsules , syrup , ointment ..."
and the project do this operations :
1) write a new drug in the file that enter later in the pharmacy
2) if you enter drug found in the file you must update drug amount field only
3) read the entire pharmacy
4) search a record by drug ID, drug name , and type of package fields
5) delete any record from the pharmacy by drug ID

"all data retrieve from the file show in table form &the pharmacy file must contain at least 15 record as sample data &you can determine the file size as approximate form what it mean "

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900