I'm very new to programming, and I'm following C ++ tutorials last week or later. Today, I have decided to make my own console application without assisting in ensuring that I have studied all the concepts so far. The app asks you to start 5 different words for 5 elements at the beginning. Then you are prompted through a menu that gives you 4 options: print the contents of the array, re-enter all words again, edit only an array element or exit the app.
When I edit the "only one array" option, this application tells another menu that you press any other key to press "1" to print the array, or to go editing. The Straight-to-Edition option goes to a mashed version of the start of the program, and using the "1" option leads to anarchy only. To print the object on the console screen, it prints like a photo for approximately 5 seconds, as long as I am asked to finish the process of not prompting a popup. After the application is closed I get it in the output log: pastebin.com/KcRU56Tg
The source code for my application can be found here:. I usually try to debug it myself (and for the last one-a-half hour), but I think it's on my head. Any help will be appreciated. Thank you.
Note that PrintInv is executing this cout statement when Write logic will be obvious and the likelihood of a bug will be less. do {...} while should avoid the statement when running It's very easy to make logic errors like yours.
n == 5 , this is an error because there are valid elements for inv ... index
0 ... 4 .
for its iterations (int i = 0; i <5; ++ i)
Comments
Post a Comment