Computer Science Canada finding some digits in an array problem |
Author: | JR [ Sat Jan 26, 2008 11:56 am ] | ||||
Post subject: | finding some digits in an array problem | ||||
I need to read through an array and take 8 digits out of it if they are either 0 or 1, when i got 8 digits i just convert it into ascii. My problem is that at one point in the array theres only 6 digits so it keeps running to the next bit of digits in the array. how would i add 2 more 0's for example for those 6 digits. might be situations with 5 4 or 3 digits as well so i need to add 0 to the end. function - Ignore the case R its for the RPT part.
Sample Main
|