[Dev-C++] RE: Print numbers up to n digits wide of number system base m
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: dx F. <vin...@ed...> - 2001-11-18 01:28:13
|
It is quite a good solution, incrementing the values would have appeared faster than converting it from one to the other. However, my concern when I was writing the program was to get the equivalent values of 124 - 255. If I could only know the number represented by 124, then I could increment it one by one. However, that would require me to got first through 2 - 124 before I actually print out the numbers. But yours is a good solution. But I'm not saying it is the one solution that one could follow. There are many other solutions out there(including mine) that one can turn to which would satisfy the problem(s). Lastly, my concern when I wrote the code for that was to create classes that can do type conversion like Decimal = Octal, which would convert Decimal number to Octal number(base 8). Also, doing operations on the numbers was part of my objective w/c I abandoned when I saw a futile search for a solution back then. __________________________________ www.edsamail.com |