After trying different snippets of code I realize that the problem wasn't solved for any of those reasons. The problem was that I closed the file, and then I didn't reopen it in the loop.
Type: Posts; User: styles
After trying different snippets of code I realize that the problem wasn't solved for any of those reasons. The problem was that I closed the file, and then I didn't reopen it in the loop.
Well I solved my problem.
In the write_bin function it should have passed -1 not 0 to the get_int function.
And the loop in the write_bin function should have included the whole function to...
I have come across another problem...
I added cin.ignore() after cin << choice.
The program lets me write different information in different records, however, when I try to view the records, all...
Thanks, Daved
Hello,
I have having some trouble with my code not working.
In my book I am in the file i/o part so this is what the exercise is on.
My program is one where the user can:
1) make a record in...