line(60+i,y-25,30+i,y-45+j); line(30+i,y-45+j,100+i,y-25); line(60+i,y+25,30+i,y+45+q); line(30+i,y+45+q,100+i,y+25); |
#include<graphics.h> #include<conio.h> #include<dos.h> #include <fstream.h> void main() { int gdriver = DETECT, gmode; int a,b,c,d,e,f; ifstream f1("valori.txt"); f1>>a; f1>>b; f1>>c; f1>>d; f1>>e; f1>>f; initgraph(&gdriver, &gmode, "C:\\borlandc\\bgi\\"); delay(a); setcolor(b); cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\tAvion cu motor ia-ma si pe mine-n zbor "; delay(c); for(int i=-200;i<400;i++) { setcolor(d); line(210+i,220,210+i,260); line(210+i,260,220+i,250); line(210+i,220,220+i,230); line(210+i,250,280+i,250); line(210+i,230,280+i,230); line(280+i,250,290+i,240); line(280+i,230,290+i,240); line(240+i,250,240+i,280); line(240+i,200,240+i,230); line(240+i,280,270+i,250); line(240+i,200,270+i,230); delay(e); setcolor(f); line(210+i,220,210+i,260); line(210+i,260,220+i,250); line(210+i,220,220+i,230); line(210+i,250,280+i,250); line(210+i,230,280+i,230); line(280+i,250,290+i,240); line(280+i,230,290+i,240); line(240+i,250,240+i,280); line(240+i,200,240+i,230); line(240+i,280,270+i,250); line(240+i,200,270+i,230); } closegraph(); f1.close(); getch(); } |
2000 1 2 2 10 0 |