problem is a little harder than I expected maybe b/c of the specifications of the problem. Help would be appreciated because I've turned this into a mess.
Input is a command line argument representing int between 0 and 255
Output: convert string to binary and output as array of numbers (0's and 1's)
I'll just throw out the basic algorithm since the program is on another pc.
-input comes in using argv/arg
-need to do error check for non numeric input. realized can't use isDigit
-use atoi to convert string to integer
-error check for value 0-255
-convert integer value to binary (several methods not sure which is most efficient?)
-store the binary values into array[8]
is something incorrect because it sure isn't working as simple as it sounds..
btw can't use <string.h>