Plot (screen) function with c++

Posted on 2000-04-05
Medium Priority
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

Question by:PPC022499
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
LVL 22

Expert Comment

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++.

Author Comment

ID: 2692599
Adjusted points from 50 to 100

Author Comment

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

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.

Author Comment

ID: 2693740
Ok, thanks again...!

I'll see to it  :)

Accepted Solution

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.

Author Comment

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!

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

800 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