Just write a function which converts an int to a string, where the content of the string is the binary representation of the int. That way you can just increment an int, e.g. in a for loop, and use your function to convert it to its binary representation.
No comments:
Post a Comment