So I'm having issues with the switch. It loops fine and stops when I put in the sentinel value of -1, but when it writes it has 0's for everything...why?
Header
1 2 3 4 5 6 7 8 9 10 11 12 13
//Mailhouse header
#include <string>
usingnamespace std;
//Product Definition
int prod1Count = 0;
int prod2Count = 0;
int prod3Count = 0;
int prod4Count = 0;
int prod5Count = 0;
May I ask what book you are using, and what page the example is on? I would like to take a peek through it if I have that volume. I have access to many C++ books, so I may not have actually read the chapter you are referring to. Thanks.