?
Solved

Plot (screen) function with c++

Posted on 2000-04-05
7
Medium Priority
?
252 Views
Last Modified: 2008-03-17
I am learning cpp, and know there are several functions to plot at the screen with. What is the most common one, which I can find in turbo c++? How do I use it?

Please send me an easy-understood example to my mail too: pluto@organizer.net

thanks
0
Comment
Question by:PPC022499
  • 4
  • 2
7 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 2687834
>> I am learning cpp, and know there are several
>> functions to plot at the screen with
Actually not true.  Standard C++ contains no features at all for dealing with graphics.  In fact standard C++ does not even assume that there progam is running on a computer with a monitor.  Standard C/C++ only assumes that there is a text based output device, this coudl be a screen, but it could be a text file, a teletype, a punch card hole punch etc.  so it has no support for graphics.

If you want to have graphics you have to use non-standard (non-portable) procedures.   Turbo C++ may provide provide procedures like this, I don't know, but they are not really part of C++.
0
 

Author Comment

by:PPC022499
ID: 2692599
Adjusted points from 50 to 100
0
 

Author Comment

by:PPC022499
ID: 2692600
Well, thanks! But do you know if there are any more "common" used functions - which follows the most compilors?

Do you know how to use any of them?

Do you have a tiny library for me, with a "plot" function as explained?

If you could mail me one with an example of how to use it I'll give you the 100 points and accept it as an answer!
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 22

Expert Comment

by:nietod
ID: 2692992
>> But do you know if there are any more
>> "common" used functions
Nope.  This is because this must vary increadibly from one OS to another and from one computer design to another.  I have don graphics work on 3 platforms and there was NO similarity what-so-ever.

Turbo-C might very well have procedures for performing grphics, but I asure you you won't be able to port them to other OSs or ciompilers without significant changes.

If you can't find any functions that are with Turbo-C you can use the DOS video services, but this is a lot of work and requires a little knowledge of assembly.
0
 

Author Comment

by:PPC022499
ID: 2693740
Ok, thanks again...!

I'll see to it  :)
0
 

Accepted Solution

by:
koniant earned 300 total points
ID: 2707193
If you want to use graphics, Allegro is an OK library. It's portable from what I understand, and can be found on www.freshmeat.net.
0
 

Author Comment

by:PPC022499
ID: 2751016
OK, hope it'll work.

Following the TC++ comes some libraries, and the putpixel function is there. I managed to use it and am satisfied actually. Thanks anyway!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question