Hello,
I am a first semester C++ student and I was wondering if anyone can help me with my program...I am having problems with it outputing too much data, the program is designed to take in two infiles of data, one is a list of weight and prices. The other one is a list of package dimensions (package #, weight, length, width, and depth) The program is supposed to reject packages that are too big, too long and too heavy (which it does just fine) and accept everything else within the qualifying parameters. However, upon reading the output file, I noticed that it is repeating certain item numbers...example: 1223344556677...and so on...what did I do wrong? Also I found out that the program is supposed to be able to accept an unlimited number of packages and mine will only do 20...how can I fix this. Any help is greatly appreciated...as well as suggestions...you can reply to me your response to MRupright@Juno.com THANK YOU FOR YOUR HELP!!
Link to my program:
Link to source and output file:
I am a first semester C++ student and I was wondering if anyone can help me with my program...I am having problems with it outputing too much data, the program is designed to take in two infiles of data, one is a list of weight and prices. The other one is a list of package dimensions (package #, weight, length, width, and depth) The program is supposed to reject packages that are too big, too long and too heavy (which it does just fine) and accept everything else within the qualifying parameters. However, upon reading the output file, I noticed that it is repeating certain item numbers...example: 1223344556677...and so on...what did I do wrong? Also I found out that the program is supposed to be able to accept an unlimited number of packages and mine will only do 20...how can I fix this. Any help is greatly appreciated...as well as suggestions...you can reply to me your response to MRupright@Juno.com THANK YOU FOR YOUR HELP!!
Link to my program:
Link to source and output file: