Counting Items in an Array
Posted on 2000-04-03
I'm stomped. I have to write a C++ program that creates an array of part numbers and prices. The program must be equipped with an error function that seperates valid part numbers (within preset parameters) from invalid part numbers. I think I have it relatively bug free except I need to know the series of commands that counts the actual items within an array. Specifically, I need my program to count the amount of times a part number that was entered is valid and the amount of part numbers that are invalid. Your help will be greatly appreciated. Also, if you know where I can find various examples of C++ array code, that would be great.