I think some major clarificarion is needed.
I was wondering if anyone can help me in terms of using atoi to get my my results to add the 1's of my binary output and then join them together... eg. 110101 and 100101 is 4 and 3 = 43.
Do you mean you want to convert series of 1's and 0's typed in by the user into it's
octal (base 8) representation? That's what this example shows. There is nothing
decimal (base 10) about it. In decimal, this value is 37, not 43.
Reputation Points: 3278
Solved Threads: 894
Posting Sage
Online 7,747 posts
since May 2006