GLA CSE Student Corner

GLA CSE Student Corner

Share

13/11/2014

Car moving over a Hump





void car(int x, int c, int i_f_y, int i_r_y)
{
setcolor(c);
line(x + 150, 100+i_r_y, x + 242, 100+i_f_y);
ellipse(x + 242, 105+i_f_y, 0, 90, 10, 5);
line(x + 150, 100+i_r_y, x + 120, 150+i_r_y);
line(x + 252, 105+i_f_y, x + 280, 150+i_f_y);
line(x + 100, 150+i_r_y, x + 320, 150+i_f_y);
line(x + 100, 150+i_r_y, x + 100, 200+i_r_y);
line(x + 320, 150+i_f_y, x + 320, 200+i_f_y);
line(x + 100, 200+i_r_y, x + 110, 200+i_r_y);
line(x + 320, 200+i_f_y, x + 310, 200+i_f_y);
arc(x + 130, 200+i_r_y, 0, 180, 20);
arc(x + 290, 200+i_f_y, 0, 180, 20);
line(x + 270, 200+i_f_y, x + 150, 200+i_r_y);
circle(x + 130, 200+i_r_y, 17);
circle(x + 290, 200+i_f_y, 17);

}


void main()
{
int gd = DETECT, gm = DETECT, i = -200;
int iy=0, prv_iy=0, prv_iry=0;
initgraph(&gd, &gm, "");

ellipse(318, 220, 0, 180, 15, 8);
line(0,220,640,220);
setfillstyle(SOLID_FILL, RED);
floodfill(318,215,15);
car(i, 15,0,0);

while (!kbhit()) {
car(i++, 0,prv_iy,prv_iry);
if(i>0 && i25){
if(i%2==0) iy++;
} else {
if(i%2==0) iy--;
}
} else if(i>160 && i185){
if(i%2==0) iy++;
} else {
if(i%2==0) iy--;
}
} else if(i>500) {
break;
} else {
prv_iy = 0;
prv_iry = 0;
iy = 0;
car(i, 15,0,0);
}
delay(20);
}
}

09/10/2014

CHECK IT OUT.....
https://www.facebook.com/IshqShayari?ref=hl

09/10/2014

1. Which of the following memories is an optical memory?
A. Floppy Disk
B. Bubble Memories
C. CD–ROM.
D. Core Memories
Answer-C

2. DNS refers to
A. Data Number Sequence
B. Digital Network Service
C. Domain Name System
D. Disk Numbering System
Answer -B


3. Java was originally invented by
A. Oracle
B. Microsoft
C. Novell
D. Sun
Answer-D

4. The unit of speed used for super computer is
A. KELOPS
B. GELOPS
C. MELOPS
D. None of these
Answer-B

5. Whose trademark is the operating system UNIX?
A. Motorola
B. Microsoft
C. BELL Laboratories
D. AshtonTate
Answer-C

Tabular Differences - Fast & Easy Wat to Learn 27/09/2014

For cse and ece tabular differences ls visit http://tabulardifference.com like cdma vs gprs,cloud vs grid computing,lilo vs grub,led vs oled ,ip vs mac, tcp/ip vs osi and many more... Special:topics on demand

Tabular Differences - Fast & Easy Wat to Learn

Want your university to be the top-listed University in Mathura?
Click here to claim your Sponsored Listing.

Category

Website

Address


Gla University
Mathura
281001