- 1

Please give me the solution for this question.

8. Write a definition for function Economic() in C++ to read each record of a binary file ITEMS.DAT, find and display those items, which cost less than 2500. Assume that the file ITEMS.DAT is created with the help of objects of class ITEMS, which is defined below: class ITEMS { int ID; char GIFTC20]; float Cost: public: void Get() { cin>>ID; gets (GIFT) ;cin>>Cost; } void See() { cout<<ID<<": "<<GIFT<<": "<<Cost<<endl; } float GetCost(){return Cost;} }:

1st Jan 2019, 5:14 AM
Prince Soni
Prince Soni - avatar
2 RĂ©ponses
+ 5
Is this some homework? Can you at least try to code something for our review? If we give you the answer directly, we ruin your learning. If you hand in homework, but then fail exam, we will be responsible.
1st Jan 2019, 5:47 AM
Gordon
Gordon - avatar
+ 2
What Gordon said. Also I see that you asked for the answer to another question that appears to be some sort of homework problem. If that is what it is, then people giving you the answers will do you no good in the end. Asking for help and asking for answers are two different things. Take your best shot at it and then if you can't figure it out, post what you tried and ask for help concerning that 🙂
1st Jan 2019, 6:22 AM
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘 - avatar