Forum: C Nov 13th, 2005 |
| Replies: 5 Views: 12,435 Dude, This is just an example of traversal. The program can be extended to many other applications as well ! |
Forum: C Nov 13th, 2005 |
| Replies: 4 Views: 15,840 #include<stdio.h>
#include<conio.h>
#include<math.h>
void hanoi(int x, char from,char to,char aux)
{
if(x==1)
{
printf("Move Disk From %c to %c\n",from,to);
} |
Forum: C Nov 13th, 2005 |
| Replies: 5 Views: 12,435 #include<stdio.h>
#include<conio.h>
struct node
{
int data;
struct node *right, *left;
}*root,*p,*q;
struct node *make(int y)
{ |