Do programmers need graphics? Especially for those who have just begun to learn the language? Should I first study all the constructions for writing basic and standard tasks, and leave the graphics for later?
Everyone should answer these questions for himself. For example, for those who learn a programming language as part of a school course, the graphics in Pascal will be a great way to stimulate yourself to further learning. After all, at this time I want to see the results of my thinking, writing programs. If we are talking about a student, then the graphics have a different purpose. Rather, it acts as an auxiliary element that helps make written products more dynamic. But in any case, this section of the programming language is, of course, important.
, . «», , , .
«»
? , , «». , . . , X Y, ( – ). (0;0), . .
« ABC» , uses.
( ).
, uses. . , , var . , «», . var , , . . . , , № 7. , «», , detect . , , , . Initgraph. . № 9 № 10 , , . closegraph , .
2, 3, 7-10, 17 , , «» . .
color , «» 15. random, , . 14 . , «» .
, «» . , . .
, . – (xLeft; yLeft). – (xRight; yRight). , , . , . , .
«» SetPixel, ( ), ( ). Line .
: , .
Displaying a point on the screen and plotting a function in Pascal are key points, so to speak, the basis of the entire section. Having learned to write programs for their execution, the programmer will be able to use graphics in its various versions. One should only know the theory well. The graphics in Pascal (examples are given in the article) are a very simple and interesting question.