Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 86,251 C++ Programmers. There are 2,144 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a C++ Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

print the value of a variable using c++ graphics

 
Reply to this topicStart new topic

print the value of a variable using c++ graphics

o.sami
post 9 May, 2008 - 10:29 AM
Post #1


New D.I.C Head

*
Joined: 9 May, 2008
Posts: 2



hey smile.gif ,
can anybody tell me how could i print the value of a variable using c++ graphics??huh.gif
example: int x = 3;
how could i print the value of x in c++ while graphics.h is included
note:i`m using a dev-c++ compiler and i added the graphics.h to it`s includes.
[font=Comic Sans Ms]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Cerolobo
post 9 May, 2008 - 11:18 AM
Post #2


D.I.C Head

**
Joined: 5 Apr, 2008
Posts: 151

Umm... graphics.h is a non standard C++ file, so we can't really help you...

If you mean Borland's graphics.h, I found this link that might help
http://www.cs.colorado.edu/%7Emain/cs1300/doc/bgi/index.html

although, I would highly recommend you use standard C++ functions instead. Namely, cout

CODE
#include <iostream>

int main(void)
{
  int foo = 1234;

  std::cout << foo << "\n";

  return 0;
}
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

o.sami
post 9 May, 2008 - 06:41 PM
Post #3


New D.I.C Head

*
Joined: 9 May, 2008
Posts: 2

really thanx for helping me.
that is a really useful site smile.gif
thnx again.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
Time is now: 5/16/08 08:57AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month