Thread: how to print the value stored in a variable in graphics mode?

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    3

    how to print the value stored in a variable in graphics mode?

    Hi!

    I want to know how the value stored in a variable can be outputted in graphics mode.

    As far as I know outtextxy(x_coord, y_coord, "string") function can be used only to print some string "string" at an specified coordinate (x_coord, y_coord) in graphics mode.



    So Is there any function or way by which value stored in a variable can be printed in graphics mode .

    Aarti

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    sprinft( buf, "%d", integerValue );
    outtextxy(x_coord, y_coord, buf );

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. merging linked lists
    By scwizzo in forum C++ Programming
    Replies: 15
    Last Post: 09-14-2008, 05:07 PM
  2. Input a string in graphics mode?
    By Vegettų in forum C++ Programming
    Replies: 3
    Last Post: 03-08-2002, 06:34 PM
  3. Mode 19 Graphics in Turbo C++
    By destroyerBEACON in forum Game Programming
    Replies: 8
    Last Post: 02-16-2002, 01:27 AM
  4. How to accept input in graphics mode
    By nurulsiddik in forum C Programming
    Replies: 1
    Last Post: 02-13-2002, 10:40 AM
  5. Text in Dos Graphics Mode
    By Frozen_Solid in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-25-2001, 04:16 PM