I have a situation, I'm hoping someone has seen before...
My program runs fine. (That's a first!--LOL)
The program is essentially a class to handle an inventory file. It has a menu with four options to display data by four distinct items. Each is a member function of the class. The menu is also a member of the class. And they all work fine.
Here's the problem:
In attempting to loop the progam until the exit option is chosen, I have tried looping it in "main" by instantiating the class and calling the menu in a loop... I have also tried just re-calling the menu after the last function called finishes displaying... all to no avail.
What happens is, everything works fine the first time thru, but upon the user changing menu choices to search via a different piece of data... all searches come back "not found."
I initially thought I was losing my indexing arrays, or there was junk in the stream when the user enters search items, but neither is true. I "cout" the arrays and all needed variables within the functions to debug it, but they are all 100% correct.
So... my current "stupid question of the day" is:
Has anyone seen anything like this? I can post code, but it's long and ugly, and is running fine on it's own... only when a user changes menu choices does it choke on me.
Thoughts?