Mail Archives: djgpp/2000/03/10/20:08:59
"nimrod a. abing" wrote:
>
> On Thu, 09 Mar 2000 22:54:56 David Cleaver wrote:
>
> >Ok, I'm printing variables to a file. The code looks like:
> >
> >...
> >cotnum(a, outfile);
> >fprintf(outfile, "^%d + ", x);
> >...
> >
> >Here, cotnum is from a library I'm using which prints a number followed by a
> >new-line character. Unfortunately, I want the following string in the fprintf
> >to be on the same line as the number that was just printed.
>
> Try using:
>
> fprintf(outfile, "%d^%d + ", a, x);
>
Unfortunately, "a" is an object so this would only print out its address. Maybe
I'll try to contact the writer of the libraries and see if he can add some other
output options. Thank you all for your input though.
-David C.
- Raw text -