Hey guys, this is a really basic question but I can't figure out how to answer it! I wrote a program for users to input product price, quantity, etc. After getting the input the program displays the quantity, price, total cost, etc., and asks if the user wants to input another product. If they press "Y" it is supposed to loop back to the beginning (all works fine), and if they press "N" the program is supposed to display the final totals of ALL products inputted. It does all of this, but the only problem is when I debug the program and enter "N", the window closes immediately! I know I can press Ctrl+F5 to run without debugging, and when I do that the table displays just like it is supposed to. However, I need to know how to make the window stay open like that when it is being debugged or else I will lose points! Please someone help!
nelledawg 4 Junior Poster in Training
nelledawg 4 Junior Poster in Training
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
Radical Edward 301 Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.