In order to replace content you have to recognize it. That is you have to write a (possibly simple) parser for the PRN file you are dealing with.
If the specifications of such PRN format are available then check them out, otherwise you have to (if possible) reverse engineer it.
THESE PEOPLE REALLY BOTHER ME!! How can they know what you should do without knowing what you want done?!?!
-- C++ FQA Lite
1. google for barcode reader source code
2. google for barcode printing source code
3. feed the former with your .prn file and get the code it represents
4. feed that to the latter to generate a new .prn file.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
I have n no of objects of a class. So what I want to do is - I want to save those data to a file when my application exit.
So how it is possible to write multiple objects of same class to a file and read that file to make objects of the same class.
Thanks in advance.
Looking at your code there are a number of issues. For example you call Account_Create() in your int_menu() function, and then call it again immediately on return. You should take all the menus and input code out of your class and just use the class for holding and manipulating its data. Start with a basic class definition and one function for getting details from the user. Compile and test that part, use your debugger to check that it saves and manages its data correctly. Then add the next function, compile and test that, etc. etc.
Can you summarize whats the purpose of this code?
Because the way you are following is not correct. But we are here to guide you, try to summarize what you did for?, what you are expecting? and what support you required... You will get help definitely
I will tell first step to follow in your code. Don't put all the operations in the body of class.. I mean that selection option using switch you write in main. Then one more mistake you did is calling the Account_Create() function before defining it. and using return Account_Create() is also not correct in switch() statement. First you do this, then hope your code will work properly.. If you didn't get also no problem, i will help you to solve this. I already did yesterday this. I don't want to give you that code and spoil you. First you try your level best with guidelines whatever so far people guided.