I've been checking forums alot lately, and it helped me in more than once while facing some C++ stuff. and my first time posting.
Anyway, am having an assignment where i need to decode and encode a ZipCode, the input of the BarCode should be as a string. BarCode contains 27 digits with 1 at the beginning and at the end of the string which will be left alone and we'll have only 25 digits formed by 1's and 0's. lets say this is the Barcode 1 10100 11000 01010 01100 10100 1.
to decode we'll take 10100 and we multiply by 74210 which will give me ( 1x7 + 0x4 + 1x2 + 0x1 + 0x0 ) = 9 which is the first digit of the ZipCode.
am stuck with how to multiply each 5 digits with (74210), coz as i far as i know strings use characters and not integers, is there any way to do this ? and as you can tell, am not a pro, just a beginner :)
thanx in advance