I am new to c++ and I am creating a program for postal barcode. Enter a zip, it will convert it to the "high, low" bars in the array. I am having trouble with my check digit (add up the digits in the zip, subtract from the next highest multiple of 10, ex. 90514 = 19 = 20-19= 1, and add the 1 to end of the barcode. Below is what I have, can anyone help me with adding the sum of the digits?
thank you guys so much! Easy fix, sorry for such a n00b question. Next step i have to make this into a function outside the main, and have it called in the main. I will try to work this out myself. Thanks again!!! :)