On Sat, Jan 10, 2009 at 1:19 AM, PanchaL RajaN <[email protected]> wrote:
> Can any1 tell me how can i print variable content using outtextxy function in
> C.
I am assuming you are using Turbo C and the Turbo graphics interface
(BGI). outtextxy() takes a pair of integers representing pixels on
your screen, and a char * containign the data you want to print. If
you need to format the data before printing it, you should use
sprintf().
I will not be the only one to tell you this, I am sure, but Turbo C is
a very outdated compiler and does not comply with the language
standards. The BGI also only supports up to VGA resolution (although I
think at one point it there were add on drivers for higher res), and
is DOS-only, non-accelerated, non-protected memory graphics. I
recommend you upgrade to a modern compiler like Visual C++ or Dev-C++
to take advantage of modern toolkits for GUI and graphics programming.
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi