Solved

Plot (screen) function with c++

Posted on 2000-04-05
7
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: 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!

 
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 100 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

Industry Leaders: 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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

695 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