Hello all, I've run into another issue with my classwork and this one has thrown me through a loop. The objective is to have a menu that displays 10 different types of coding languages and a quit, then, when whichever language is selected gets written to a file, and then the menu runs again. Until you choose to quit, where you are supposed to then read the same file that you were writing to, and print that out on the screen. I am still new to c++ and very new to files, so this question might be easier than it looks, but if I could get a little help on this one that'd be greatly appreciated. I have attached what I have done so far, sometimes it writes it, sometimes it reads it, but it never works perfectly. The main step I've gotten hung up on is the printing of the file part, but my input loop doesn't always work either :/. Thanks for the info in advance.
ie use the debugger and trace through the code watching the contents of the variables until the observed behaviour is not as expected. Then you have a bug. Repeat until the program works as expected.
Hello all, I've run into another issue with my classwork and this one has thrown me through a loop. The objective is to have a menu that displays 10 different types of coding languages and a quit, then, when whichever language is selected gets written to a file, and then the menu runs again. Until you choose to quit, where you are supposed to then read the same file that you were writing to, and print that out on the screen. I am still new to c++ and very new to files, so this question might be easier than it looks, but if I could get a little help on this one that'd be greatly appreciated. I have attached what I have done so far, sometimes it writes it, sometimes it reads it, but it never works perfectly. The main step I've gotten hung up on is the printing of the file part, but my input loop doesn't always work either :/. Thanks for the info in advance.