Tuesday, August 7, 2007

SEND SMS anywhere ABSOLUTELY FREE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

you can send

Send SMS






Recipient's phone number in international format (dashes and spaces are allowed,
only digits matter; e.g., +7(916)123-4567):




Message text (max 140 characters):





The service is supported by www.email2sms.ru
sms anywhere by using this site

Saturday, July 21, 2007

R-B tree

R-B TREE
Program

#include
#include
#include
#include
#include
#include
#include

#define originX 320
#define originY 50
#define lineLength 145
#define circleRadius 10

struct treenode
{
int data;
char col;
int mX,mY;
int Level;
struct treenode *rlink;
struct treenode *llink;
struct treenode *parent;
}*p,*curr,*root,*temp,*father,*succ,*uncle=NULL;

int l=0,c,d,ctr=0,top=0;
char ch;

void insert();
void del();
void traverse();
void deallocate();
void check(struct treenode *);
void tredis(struct treenode *ptr, int blanks);
void insertfix(struct treenode *);
void leftrotate(struct treenode*);
void rightrotate(struct treenode*);
void drawTree( struct treenode* Current);
void preOrder(struct treenode* myRoot);

void main()
{
int code;
clrscr();
int gDriver = DETECT,gMode,Data;
initgraph(&gDriver,&gMode,"f:\\tc\\bgi");
if(ctr==0)
{
printf("\n----------------------\n");
printf("\n RED BLACK Tree");
printf("\n----------------------\n");
ctr++;
}
printf("\nWhat do u want to do\n");
printf("1.Insert\n");
printf("2.Delete\n");
printf("3.Display\n");
printf("4.Exit\n");
printf("\nEnter ur choice:\t");
scanf("%d",&code);

switch(code)
{
case 1:insert();
break;
case 2: del();
break;
case 3: traverse();
preOrder(root);
break;
case 4: exit(0);
break;
default: printf("WRONG CHOICE");
break;
}
printf("\nDo you want to continue(y/n)");
ch=getch();
if(ch=='y')
main();
else
exit(0);
}


void insert()
{
l++;
if(l==1)
{
root=(struct treenode *)malloc(sizeof(struct treenode));
printf("\nEnter data:\t");
scanf("%d",&root->data);
root->llink=NULL;
root->rlink=NULL;
root->col='b';
root->parent=NULL;
root->mX=originX;
root->mY=originY;
main();
}
else
{
c=0;
temp=(struct treenode *)malloc(sizeof(struct treenode));
printf("\nEnter data:\t");
scanf("%d",&temp->data);
d=temp->data;
temp->col='r';
temp->parent=NULL;
check(root);
if(c==1)
{
printf("\n /**WARNING**\\Data already present cannot enter \n");
printf("\nDo you want to continue(y/n)");
ch=getch();
if(ch=='y')
{
free(temp);
main();
}
else
exit(0);
}
else
{
temp->llink=NULL;
temp->rlink=NULL;
curr=root;
while(curr!=NULL)
{
if(temp->data < curr->data)
{
if(curr->llink!=NULL)
{
curr=curr->llink;
}
else
{
curr->llink=temp;
temp->parent=curr;
insertfix(temp);
main();
}
}
else if(temp->data > curr->data)
{
if(curr->rlink!=NULL)
{
curr=curr->rlink;
}
else
{
curr->rlink=temp;
temp->parent=curr;
insertfix(temp);
main();
}
}
}
}
}
}

void del()
{
int item;
printf("\nEnter item to be deleted\t");
scanf("%d",&item);
if(root==NULL)
{
printf("EMPTY TREE");
getch();
main();
}
curr=root;
father=NULL;
while(curr!=NULL && curr->data!=item)
{
father = curr;
if(itemdata)
curr=curr->llink;
else
curr=curr->rlink;
}

if(curr==NULL)
{
printf("Item does not exist");
main();
}

if(curr->llink!=NULL && curr->rlink!=NULL)
{
father = curr;
succ=curr->rlink;
while(succ->llink!=NULL)
{
father=succ;
succ=succ->llink;
}
curr->data=succ->data;
curr=succ;
if(father->rlink==succ)
father->rlink=NULL;
else
father->llink=NULL;
}

else if(curr->llink!=NULL)
{
if(father!=NULL)
{
if(father->llink==curr)
{
father->llink=curr->llink;
}
else
father->rlink=curr->rlink;
}
else
root=curr->rlink;
}

else if(curr->rlink==NULL)
{
if(father->llink==curr)
father->llink=curr->llink;
else
father->rlink=curr->llink;
}
else
root=curr->llink;
free(curr);
main();
}

void traverse()
{
clrscr();
cleardevice();
tredis(root,0);

}


void check(struct treenode *p)
{
if(p!=NULL)
{
if(p->data==d)
c=1;
check(p->llink);
check(p->rlink);
}
}
void tredis(struct treenode *ptr,int levels)
{
int i;
if ( ptr!=NULL )
{
ptr->Level=levels;
tredis(ptr->llink, levels+1);
tredis(ptr->rlink, levels+1);
}
}

void insertfix(struct treenode* x)
{
while(x->parent->col=='r')
{
if(x->parent==x->parent->parent->llink)
{
uncle=x->parent->parent->rlink;

/*case 1*/

if(uncle->col=='r')
{
x->parent->col='b';
uncle->col='b';
x->parent->parent->col='r';
x=x->parent->parent;
}

/*case 2*/

else if(x==x->parent->llink)
{
x=x->parent;
leftrotate(x);

/*case 3*/

x->parent->col='b';
x->parent->parent->col='r';
rightrotate(x);
}
}
else if(x->parent==x->parent->parent->rlink)
{
uncle=x->parent->parent->llink;

/*case 1*/

if(uncle->col=='r')
{
x->parent->col='b';
uncle->col='b';
x->parent->parent->col='r';
x=x->parent->parent;
}

/*case 2*/

else if(x==x->parent->rlink)
{
x=x->parent;
rightrotate(x);

/*case 3*/

x->parent->col='b';
x->parent->parent->col='r';
leftrotate(x);
}
}
root->col='b';
}
main();
}

void leftrotate(struct treenode *x)
{
struct treenode *y;
y=x->rlink;
x->rlink=y->llink;
y->llink->parent=x;
y->parent=x->parent;
if(x->parent==NULL)
{
root=y;
}
else if(x==x->llink->parent)
{
x->llink->parent=y;
}
else
{
x->rlink->parent=y;
}
y->llink=x;
x->parent=y;
}

void rightrotate(struct treenode *x)
{
struct treenode *y;
y=x->llink;
x->llink=y->rlink;
y->rlink->parent=x;
y->parent=x->parent;
if(x->parent==NULL)
{
root=y;
}
else if(x==x->rlink->parent)
{
x->rlink->parent=y;
}
else
{
x->llink->parent=y;
}
y->rlink=x;
x->parent=y;
}

void drawTree( struct treenode* Current)
{
int pX,pY,newlineLength,textColor=WHITE,nodeColor=RED;
int offsetX,offsetY,Angle,newAngle,color;
char *Buffer;
double radianAngle;

if(Current->Level==1)
Angle=80;
else if(Current->Level>1)
Angle=45;

if(Current->Level==0)
newlineLength=160;
else
newlineLength = lineLength-15*Current->Level;

if(newlineLength<=45)
newlineLength=45;

newAngle = Angle-10*Current->Level;

if(newAngle<=10)
newAngle=12;

setcolor(RED);
setfillstyle(SOLID_FILL,RED);

if(Current->col=='r')
{
setcolor(RED);
setfillstyle(1,RED);
color=RED;
}
else
{
setcolor(WHITE);
setfillstyle(1,BLACK);
color=WHITE;
}

if(Current->parent==NULL)
{
circle(originX,originY,circleRadius);
floodfill(originX+3,originY+3,color);
itoa(Current->data,Buffer,10);
setcolor(textColor);
outtextxy(originX-7,originY-3,Buffer);
setcolor(nodeColor);
}
else
{
pX=Current->parent->mX;
pY=Current->parent->mY;

if(Current->data < Current->parent->data)
{
radianAngle = (3.14285/180)*newAngle;

offsetX = pX - newlineLength * sin(radianAngle);
offsetY = pY + newlineLength * cos(radianAngle);


circle(offsetX,offsetY,circleRadius);
floodfill(offsetX+3,offsetY+3,color);
setcolor(BLUE);
line(pX,pY,offsetX,offsetY);
itoa(Current->data,Buffer,10);
setcolor(textColor);
outtextxy(offsetX-7,offsetY-3,Buffer);
setcolor(nodeColor);
Current->mX=offsetX;
Current->mY=offsetY;
}
else if(Current->data > Current->parent->data)
{
radianAngle = (3.14285/180)*newAngle;

offsetX = pX + newlineLength * sin(radianAngle);
offsetY = pY + newlineLength * cos(radianAngle);

circle(offsetX,offsetY,circleRadius);
floodfill(offsetX+3,offsetY+3,color);
setcolor(BLUE);
line(pX,pY,offsetX,offsetY);
itoa(Current->data,Buffer,10);
setcolor(textColor);
outtextxy(offsetX-7,offsetY-3,Buffer);
setcolor(nodeColor);
Current->mX=offsetX;
Current->mY=offsetY;
}

}//ELSE

}

void preOrder(struct treenode* myRoot)
{
if(myRoot!=NULL)
{
drawTree(myRoot);
preOrder(myRoot->llink);
preOrder(myRoot->rlink);
}

}

Rain

#include
#include
#include
#include
void rain();
int size=5, speed=100, y=0;
void main()
{
int gdriver=DETECT, gd, i, j, x;
char c;
initgraph(&gdriver, &gd,"");
outtextxy(450,10,"[ 0 ] Stop");
outtextxy(450,20,"[ 1 ] Slow");
outtextxy(450,30,"[ 2 ] Medium");
outtextxy(450,40,"[ 3 ] Fast");
outtextxy(400,450,"Developed by Kailas, S7 CS, MCET");
while(1)
{
if(kbhit()) //to detect whether there is any key stroke
{
c=getch();
if(c=='0') // if key pressed is x or X then exit
{
exit(0);
}
else if(c=='1') // Low speed
speed=500;
else if(c=='2') // medium speed
speed=100;
else if(c=='3') // maximum speed
speed=1;
}
setcolor(0);
rain();
if(y==400)
y=400;
y=y+2;
setcolor(15);
rain();
delay(speed);
}
}

void rain()
{
int i,j;
for(j=0;j<1000;j=j+20)
{
for(i=10;i<640;i=i+10)
{ //printf("%d",i);
line(i,y-j,i,y+size-j);
}
}
/*
setcolor(15);
for(j=20;j<500;j=j+40)
{
for(i=10;i<640;i=i+20)
{ //printf("%d",i);
line(i,j,i,j+size);
}
}
delay(speed);
y=y+5;
setcolor(15);
for(j=0;j<500;j=j+40)
{
for(i=0;i<640;i=i+20)
{
line(i,j,i,j+size);
}
}
setcolor(0);
for(j=20;j<500;j=j+40)
{
for(i=10;i<640;i=i+20)
{
line(i,j-10,i,j+size);
}
} */

}

Traffic

// ----- Program to implement Traffic light system ----- kn
#include
#include
#include
#include
void junction(), car(int), truck1(int), bus(), jeep();
void light(),control(int s);
int xc=0,xb=50,xj=50,xt1=0,x=0,i,ex,east,west,north,south;
// ----- Program begins here
void main()
{
int gdriver=DETECT,gmode;
char c;
initgraph(&gdriver,&gmode,""); // initialize graphics
junction(); // call function to display the junction
do
{
if(kbhit()) //to detect whether there is any key stroke
{
c=getch();
if(c=='x' || c=='X') // if key pressed is x or X then exit
{
exit(0);
}
else if(c=='0') // if key is 0 then allow east-west traffic
control(0);
else if(c=='1') // if key is 0 then allow north-south traffic
control(1);
}
setcolor(0);
if((getpixel(376,126)==4) && xc==110); // to stop car
else // move car
{ car(0); xc++; }
if((getpixel(376,126)==4) && xt1==50); // to stop truck
else // move truk
{ truck1(0); xt1++; }
if((getpixel(180,156)==4) && xj==122); // to stop the jeep
else // move jeep
{ jeep(); xj=xj+2; }
if((getpixel(180,156)==4) && xb==150); // to stop the bus
else // move bus
{ bus(); xb++; }

setcolor(15);
jeep(); bus(); car(15), truck1(15);
delay(10);
}while(1);
}//End of main program
// Design of the junction
void junction()
{
line(250,0,250,150); // north-w
line(350,0,350,150); // north-e
line(250,350,250,500); // south-w
line(350,350,350,500); // south-e
line(0,200,200,200); // west-n
line(0,300,200,300); // west-s
line(400,200,650,200); // east-n
line(400,300,650,300); // east-s
arc(400,150,180,270,50);//north-east
arc(200,150,270,360,50);//north-west
arc(400,350,90,180,50); //south-east
arc(200,350,0,90,50); //south-west
outtextxy(390,10,"[x] to exit");
outtextxy(390,20,"[0] East-west ON");
outtextxy(390,30,"[1] North-south ON");
outtextxy(380,450,"Developed by Kailas, S7 CS, MCET");
light(); // call function to display the traffic signal system
}
// Traffic signal system design
void light()
{
setfillstyle(SOLID_FILL,14);
rectangle(375,125,400,140); bar(350,135,400,140);//north direction
rectangle(200,360,225,375); bar(200,360,250,365);//south direction
rectangle(400,325,415,350); bar(400,300,405,350);//east direction
rectangle(175,150,190,175); bar(185,150,190,200);//west direction
control(0);
}
// ----- Traffic Signal System control (Display the lights)
void control(int s)
{
outtextxy(5,4,"Control: "); gotoxy(10,1); printf("%d",s);
if(s==0) // allow east-west traffic move
{
setfillstyle(SOLID_FILL,4); // north-south signals to red
bar(375,125,400,135);//north
bar(200,365,225,375);//south
setfillstyle(SOLID_FILL,2); // east-west signals to green
bar(405,325,415,350);//east
bar(175,150,185,175);//west
}
else // allow north-south traffic move
{
setfillstyle(SOLID_FILL,2); // north-south signals to green
bar(375,125,400,135);//north
bar(200,365,225,375);//south
setfillstyle(SOLID_FILL,4); // east-west signals to red
bar(405,325,415,350);//east
bar(175,150,185,175);//west
}
}
//----- function to display the moving jeep
void jeep()
{
if(xj>=1000)
xj=0;
rectangle(0+xj,215,30+xj,240);
rectangle(30+xj,230,50+xj,240);
rectangle(20+xj,216,29+xj,238);
arc(10+xj,240,180,360,5);
arc(40+xj,240,180,360,5);
}
//----- function to display the moving truck
void truck1(int color)
{
if(xt1==700)
xt1=0;
setfillstyle(INTERLEAVE_FILL,color);
bar(260,442-xt1,285,500-xt1);
rectangle(260,425-xt1,285,440-xt1);
setfillstyle(SOLID_FILL,color);
bar(257,427-xt1,260,433-xt1); bar(285,427-xt1,287,433-xt1);//front tyre set 1
bar(257,447-xt1,260,453-xt1); bar(285,447-xt1,287,453-xt1);//front tyre set 2
bar(257,492-xt1,260,498-xt1); bar(285,492-xt1,287,498-xt1);//back tyre set 1
bar(257,482-xt1,260,488-xt1); bar(285,482-xt1,287,488-xt1);//back tyre set 2
}
//----- function to display the moving car
void car(int color)
{
if(xc==500)
xc=0;
setfillstyle(SOLID_FILL,color);
rectangle(320,0+xc,340,40+xc);
rectangle(324,10+xc,336,30+xc);
bar(317,2+xc,319,8+xc); bar(341,2+xc,343,8+xc); //front tyres set 1
bar(317,32+xc,319,38+xc); bar(341,32+xc,343,38+xc);// back tyres
}
//----- function to display the moving bus
void bus()
{
if(xb==700)
xb=-50;
rectangle(630-xb,255,560-xb,290);
rectangle(629-xb,256,561-xb,275);
rectangle(570-xb,255,580-xb,290);//front door
arc(620-xb,290,180,360,5); //tyre
arc(570-xb,290,180,360,5); //tyre
}
/*--------

Fan

// ----- Program to display a fan rotating at various speed ----- kn
#include
#include
#include
#include
void fan(), rotation();
int x=0,speed=250;
// ----- Program begins here
void main()
{
int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"");
fan();
getch();
}//End of main function
// ----- function to design the fan
void fan()
{
int i;
setfillstyle(SOLID_FILL,15);
circle(320,240,100); circle(320,240,98);
pieslice(320,240,0,360,10);
bar(310,340,330,360);
rectangle(270,360,370,400);
line(280,330,310,360);
line(330,360,360,330);
outtextxy(450,10,"[ 0 ] Stop");
outtextxy(450,20,"[ 1 ] Slow");
outtextxy(450,30,"[ 2 ] Medium");
outtextxy(450,40,"[ 3 ] Fast");
outtextxy(400,450,"Developed by Kailas, S7 CS, MCET");
rotation();
}
// ----- function to rotate the fan
void rotation()
{
int f1=360,f2=240,f3=120;
int i;
char c;
setcolor(0);
while(1)
{
if(kbhit()) //to detect whether there is any key stroke
{
c=getch();
if(c=='0') // if key pressed is x or X then exit
{
exit(0);
}
else if(c=='1') // minimun speed
speed=250;
else if(c=='2') // medium speed
speed=100;
else if(c=='3') // maximum speed
speed=50;
}
setfillstyle(SOLID_FILL, 0);
sector(320,240,f1,f1+20,70,70);
sector(320,240,f2,f2+20,70,70);
sector(320,240,f3,f3+20,70,70);
f1=f1-30;
f2=f2-30;
f3=f3-30;
if(f1<=30)
f1=360;
if(f2<=30)
f2=360;
if(f3<=30)
f3=360;
setfillstyle(SOLID_FILL, 15);
sector(320,240,f1,f1+20,70,70);
sector(320,240,f2,f2+20,70,70);
sector(320,240,f3,f3+20,70,70);
pieslice(320,240,0,360,10);
delay(speed);
}
}
/*------------------------------ END --------------------------------------*/

Car

// ----- Program to display a moving car ----- kn
#include
#include
#include
#include
void car(int x), go(), wheel(int c);
int color=4,speed=50,e,x=0,stangle = 0,endangle = 180,radius = 30;
// ----- Program starts here
void main()
{
int gdriver = DETECT, gmode;
initgraph(&gdriver, &gmode, "");
go();
getch();
}//End of main program
// ----- Function to move the car
void go()
{
int i=0;
char c;
line(0,280,650,280);
outtextxy(390,10,"[R] Red colour");
outtextxy(390,20,"[G] Green colour");
outtextxy(390,30,"[B] Blue colour");
outtextxy(540,10,"[F] Fast");
outtextxy(540,20,"[S] Slow");
outtextxy(390,40,"[x] Exit CAR");
outtextxy(380,450,"Developed by Kailas, S7 CS, MCET");
while(1)
{
if(kbhit()) //to detect whether there is any key stroke
{
c=getch();
if(c=='x' || c=='X') // if key pressed is x or X then exit
exit(0);
else if(c=='R'||c=='r') // Red car
color=4;
else if(c=='B'||c=='b') // Blue car
color=1;
else if(c=='G'||c=='g') // Green car
color=2;
else if(c=='F'||c=='f') // Fast
speed=1;
else if(c=='S'||c=='s') // Slow
speed=50;
}
i++;
setcolor(0);
wheel(0);
car(x);
x=i+5;
setcolor(color);
car(x);
wheel(7);
delay(speed);
if(i==600)
i=-150;
}
}
// ----- Design of Car
void car(int x)
{
line(80+x,100,225+x,100); // top roof
line(80+x,100,50+x,175); // back glass
line(50+x,175,50+x,250); // back door
line(225+x,100,300+x,175); // front glass
line(300+x,175,380+x,195); // bonet
arc(380+x, 216, 0, 90, 20);
line(400+x,216,400+x,250); // front grill
e=50+x; // -------------
line(e,250,e+10,250); // bottom -
line(e+70,250,e+240,250); // platform -
line(e+300,250,e+350,250); // -------------
arc(e+40, 250, stangle, endangle, radius);
arc(e+270, 250, stangle, endangle, radius);
//front door
line(215+x,105,215+x,240); //left
line(285+x,170,285+x,240); //right
line(215+x,105,220+x,105); //top
line(215+x,240,285+x,240); //bottom
line(220+x,105,285+x,170); // front slope
line(220+x,110,220+x,170);
line(220+x,170,280+x,170);
line(220+x,110,280+x,170);
//back door
line(130+x,105,130+x,240); //left
line(210+x,105,210+x,240); //right
line(130+x,105,210+x,105); //top
line(130+x,240,210+x,240); //bottom
rectangle(135+x,110,205+x,170); //window
rectangle(80+x,110,125+x,170); //back window
}
// -----Design of the wheels of car
void wheel(int c)
{
setcolor(c);
circle(e+40, 250, radius-4);
circle(e+270, 250, radius-4);
circle(e+40, 250, radius-3);
circle(e+270, 250, radius-3);
rectangle(30+x,185,45+x,235); // extra tyre
}
/*-------

Clock

//To draw a clock using line and circle drawing algorithms

#include
#include
#include
#include
#include "c:\tc\bin\praseo\dda.h"
#include "c:\tc\bin\praseo\circle.h"
#define pi 3.14159

int main()
{
//declaration
//time structure
struct time t;
//graphics variables
int gdriver,gmode;
//clock variables
int hour,minute,second;
float sec_angle,min_angle,hour_angle;

//co-ordinates
int x1,y1;
int sec_x2,sec_y2,min_x2,min_y2,hour_x2,hour_y2;

//temporary variables
int i;

//getting current system time
gettime(&t);
hour=t.ti_hour;
minute=t.ti_min;
second=t.ti_sec;

gdriver=DETECT;
clrscr();
x1=320;
y1=240;

initgraph(&gdriver,&gmode,"c:\\tc\\bgi\\");
circles(x1,y1,139);
circles(x1,y1,140);
circles(x1,y1,141);

//hand movement
while(!kbhit())
{

//second hand movement
if(second!=60)
{
sec_angle=(second*(pi/30)-(pi/2));
sec_x2=320+(120*cos(sec_angle));
sec_y2=240+(120*sin(sec_angle));
drawline(x1,y1,sec_x2,sec_y2,15);

min_angle=(minute*(pi/30)-(pi/2));
min_x2=320+(90*cos(min_angle));
min_y2=240+(90*sin(min_angle));
drawline(x1,y1,min_x2,min_y2,1);

hour_angle=(hour*(pi/6)-(pi/2));
hour_x2=320+(55*cos(hour_angle));
hour_y2=240+(55*sin(hour_angle));
drawline(x1,y1,hour_x2,hour_y2,2);

delay(1000);
drawline(x1,y1,sec_x2,sec_y2,0);
second++;
}
//minute hand increment
if(second==60)
{
drawline(x1,y1,min_x2,min_y2,0);
minute++;
second=0;
}
//hour hand increment
if(minute==60)
{
drawline(x1,y1,hour_x2,hour_y2,0);
hour++;
minute=0;
}


}
closegraph();
return 0;
}

Continues

//Bucket fill

#include
#include
#include

void bucket_draw()
{
int ccolor;


ccolor=getpixel(b.x,b.y);
bucket_fill(b.x1,);
}
void bucket_fill()
{

}
int main()
{
int gdriver,gmode;
gdriver=DETECT;
clrscr();

initgraph(&gdriver,&gmode,"c:\\tc\\bgi\\");

getch();
closegraph();
return 0;
}

S7 Graphics Lab

//This program is to implement Bresenham's algorithm
//for slope less than 1 and positive dx
#include
#include
#include
#include
#include
struct point
{
float x,y;
}a,b;
int main()
{
int dx,dy;
double pk;
int dx2,dy2;
int gdriver=DETECT;
int gmode;
printf("Bresenham's Algorithm for |m|<1\n");
printf("********************************\n");
printf("Enter the 2 points : ");
scanf("%f%f%f%f",&a.x,&a.y,&b.x,&b.y);

initgraph(&gdriver,&gmode,"c:\\tc\\bgi");
//calculation part
dx=abs(a.x-b.x);
if(dx<0)
dx*=-1;

dy=abs(a.y-b.y);
if(dy<0)
dy*=-1;

dy2=2*dy;
dx2=2*dx;

pk=dy2-dx;
putpixel(a.x,a.y,15);
putpixel(b.x,b.y,15);

while(dx>0)
{
if(pk<0)
{
a.x++;
pk+=dy2;
}
else
{
a.x++;
a.y++;
pk+=dy2-dx2;
}
putpixel(a.x,a.y,15);
dx--;
}
//line(100,200,200,250);

getch();
closegraph();
return 0;
}

Welcome!!!

Welcome to my blog......First of all thank u for visiting my blog. Hii i am anoop.. i hav completed enggr & nw hav joined at a company at Tvm...My field is in software engg & invite each and everyone of u to share ur views and opinions in this blog....I hope this wil evolve into a gr8 blogspot ....Hav a nice time......