Posts

Showing posts from July 17, 2011

SOLAR SYSTEM MAKING THROUGH COMPUTER GRAPHICS.

itprofessionalsrocks.blogspot.com /* SOLAR SYSTEM CREATED BY HEMANT GUPTA IT-4th SEMESTER EVENING BATCH */ #include <GRAPHICS.H> #include <stdio.h> #include<math.h> #include<conio.h> #include<dos.h> int stangle = 0, endangle = 360; int xr = 100, yr = 50,xr2=120,yr2=60,xr3=160,yr3=70,xr4=180; int yr4=80,xr5=200,yr5=100,xr6=220,yr6=120,xr7=240,yr7=140,xr8=260,yr8=160; void main() { clrscr(); int gd=DETECT,gm; float xc=300,yc=200,x,y,x2,y2,x3,y3,x4,y4,x5,y5,x6,y6,x7,y7,x8,y8,l,r,a,i,rad; initgraph(&gd,&gm,"f:\\TC\\bin\\BGI"); printf("\nEnter the length\n");  //length scanf("%f",&l); printf("\nEnter radius\n");     //radius of planets scanf("%f",&r); printf("\nEnter angle\n");     //angle =180 for solar system scanf("%f",&a); a=a/2; while(!kbhit()) { for(i=-a;i<=a;i++) {  outtextxy(100,100,"solar system") ; setcolor(14);  circle