.


:




:

































 

 

 

 





 

_____________ ..

 

_________________2011 .

 

 

..

12

C++

220000 ,

220700 .

 

 

519.6

00000

00

 

..

00 C++. I , 220000 , 220700 / .. . : - , 2011. 18 .

519.6

00000

 

 

1 2011 .

 

.

______________ ..

 

-

______________ ..

 

..

 

 

, 2011

.., 2011

.

, 2011

12

C++

. BGI ++.

, . , <graphics.h>. , . initgraph. :

void initgraph (int *driver,int *mode,char *path);

, , mode , BGI. 1 .

 

1. .

aDETECT  
CGA  
MCGA  
EGA  
EGA64  
EGAMONO  
IBM8514  
HERCMONO  
ATT400  
aVGA  
PC3270  

 

initgraph , () ( DETECT).

mode . (VGA, CGA, MCGA, EGA, ATT400...) 0 5 (. . 2.)

2. VGA

VGALO   640´200 16
VGAMED   640´350 16
aVGAHI   640´480 16

 

, BGI, DOS . , BGI, Borland C++ .

.ide, , .exe . , Borland , . :

closegraph(); // ;

restorecrtmode();// .

. , x, y . (0,0). (, ) :

putpixel (int x, int y, int color);

:

setcolor (color);

 

color 0 15:

0 5 10 -

1 6 11 -

2 7 - 12

3 8 - 13 -

4 9 - 14

15

 

 

( conio.h)

clreol (void clreol(void));

clrscr (void clrscr(void));

cgets str (char *cgets(char *str));

cprintf , windows() (int cprintf(const char *format [, argument,...]));

c puts str () (int cputs(char *str));

cscanf , . (int cscanf(const char *format [, address,...]));

delline ( ) (void delline(void));

gotoxy (x, y) (void gotoxy(int x, int y));

highvideo </FONT< td> , (void highvideo(void));

movetext , (x, y). - (x0, y0), (x1, y1) (int movetext(int x0, int y0, int x1, int y1, int x, int y));

normvideo (void normvideo(void));

textattr (, ) , (void textattr(int newattr));

textbackground c (void textbackground(int c));

textcolor c (void textcolor(int c));

textmode m (viod textmode(int m));

wherex (int wherex(void));

wherey (int wherey(void));

window (x0, y0), (x1, y1) (void window(int x0, int y0, int x1, int y1)).

 





:


: 2016-12-17; !; : 385 |


:

:

: , .
==> ...

1982 - | 1616 -


© 2015-2024 lektsii.org - -

: 0.017 .