you mean you want to print an octal representation of a decimal number?
Check out your language reference for itoa.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
don't give people complete programs, it stops them from thinking for themselves...
Or if you do include some subtle logic errors that they'll have to solve to make it work.
And if you do give sample code make it proper code.
void main() is an abomination, etc. are deprecated
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
>#include
>#include
Nonstandard headers.
>#include
Unused header.
>void main()
Incorrect.
>clrscr();
Unnecessary and a nonstandard function.
> n[c] = 55 + r;
> n[c] = 48 + r;
ASCII hacks.
>getch();
Nonstandard function.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314