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 :cool:

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.