i want to do a c++ program on online shopping... i need help in the file handling part...can someone pls help me??
hmm ...can u be specific ?
do u mean using file extensions or by using functions?
its a gadget showroom....where u enter details of each gadget i need to add,modify,display and delete details...... i need class,file handling , functions etc....
declare a class shopping ,add functions for input and output gadget,display the items u have for shopping in a nice format , an array structure maybe used to store gadget details and a function should be made for modifying.thats all required i think
where should i use file handling ?
i dont get what u mean by file handling
file handling is where u store information permanently... its taken for use later
How does your program work? Describe what would occur when the finished program is run. It sounds like a couple things your program needs to do include: -read in a text file to store details of gadgets -allow a user to create/modify gadgets Without knowing what kind of material you're learning right now it's difficult to say what is the best option for you. To read in a file, you need to have a function that knows how to read the text file and parse it for the formatted data. Depending on the structure of your program, each line could be a separate gadget, so you need to instantiate a new gadget and define it as you're reading each line. Really though, what you're asking for is too vague and requires others to do the guessing for you so you might want to clarify the specifics.
Join our real-time social learning platform and learn together with your friends!