C++ program to perform Insertion and Deletion operations on AVL-trees

Wednesday, March 10th, 2010  »  Posted By  »  Total 6 Comments

void AVL::display(AVLNODE *temp)
{
if(temp==NULL)
return;
cout<data<<" ";
display(temp->left);
display(temp->right);
}

C Program to fill any given polygon using scan-line area filling algorithm

Friday, October 2nd, 2009  »  Posted By  »  Total 2 Comments

setcolor (WHITE);
line (pt[0][0], pt[0][1], pt[1][0], pt[1][1]);
line (pt[1][0], pt[1][1], pt[2][0], pt[2][1]);
line (pt[2][0], pt[2][1], pt[0][0], pt[0][1]);
getch();

C Program to draw a rectangle and perform the operations.

Friday, October 2nd, 2009  »  Posted By  »  Total 0 Comment

C Program to draw a rectangle and perform the following operations.
a. Rotation about the origin followed by translation.
b. Rotation about an arbitrary point.
c. Apply X shear and Y shear on the rectangle.

C program to find the Shortest path for a given graph

Sunday, September 20th, 2009  »  Posted By  »  Total 3 Comments

OUTPUT:
enter the cost matrix :
0 1 4 2 0
0 0 0 2 3
0 0 0 3 0
0 0 0 0 5
0 0 0 0 0
enter number of paths : 4
enter possible paths :
1 2 4 5 0
1 2 5 0 0
1 4 5 0 0
1 3 4 5 0
minimum cost : 4
minimum cost path :
1–>2–>5

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup