Simple graphics in Pascal

Reply

Join Date: Sep 2005
Posts: 1
Reputation: antypanty is an unknown quantity at this point 
Solved Threads: 0
antypanty antypanty is offline Offline
Newbie Poster

Simple graphics in Pascal

 
0
  #1
Sep 22nd, 2005
Hey, I've been studying pascal for a while now but still havn't yet learnt how to put a simple line on my console.

The code I have is:

program test;
uses graph;
begin
line(0,0,10,10);
readln;
end.

When executed just flashes on then off quickly.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 3
Reputation: abdullah is an unknown quantity at this point 
Solved Threads: 0
abdullah's Avatar
abdullah abdullah is offline Offline
Newbie Poster

Re: Simple graphics in Pascal

 
0
  #2
Oct 11th, 2005
dude... look up the function InitGraph in your pascal help file (type initgraph and put the cursor under it and press ctrl+F1).

the turbo help has lots of examples for graphics to get you started.

personally though i've found writing applications in text mode much faster and easier to control with the same eventual results.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Pascal and Delphi Forum


Views: 5323 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Pascal and Delphi
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC