Mail Archives: djgpp/1998/05/24/15:30:30
hellweb AT hotmail DOT com schrieb in Nachricht
<35674f59 DOT 7101793 AT news DOT infonie DOT fr>...
>Hi,
>
>This is the second time I am asking this question, because it's
>becoming quite urgent :
>I would like to make a function that would plot and join points on a
>full screen graph. this has to be printed then. If you don't know the
>all thing ( or even if you think I should fulfill it on my own !)
>could you give me a clue.
>
>PS : this has to be C, not C++; under DOS; the quicker the better
>(yesterday would be cool !)
>
>Thanks for any help
>
>Hellweb
AFAIK you can't plot points in text mode.
So you'll need a grafix lib - the best choice would be Allegro.
With Allegro, you could do "putpix(x,y,color);" to plot the points;
For linear interpolation, you could use "line(x1,y1,x2,y2,color);"
hth,
Elias Pschernig
- Raw text -