Intro ::....
This program is actually based on the fun game FLAMES i hope every one would have heard about it... If not follow me... In FLAMES
F - Friends
L - Love
A - Affection
M - Marriage
E - Enemy
S - Sister or in general any other relartion...
Its totally fun try it out in your system by copying this code.... In this program i have used the concept on circularly linked list from data structures a popular concept.... I have tried out this program with the repuisition of some of my friends... I hope u ll surely enjoy it.....
Source Code ::....
#include string.h
#include alloc.h
#include conio.h
{
int data;
struct node *next;
}*head,*p,*old;
{
char s1[10],s2[10];
int i,j,k,l1,l2,l,s,c=0,g=0,opt;
clrscr();
printf("\n\n\n\n\tEnter the first string\n\t");
gets(s1);
l1=strlen(s1);
printf("\n\n\tEnter the second string\n\t");
gets(s2);
l2=strlen(s2);
for(i=0;i
p=head;
for(i=2;i<=6;i++)
p=p->next;
p->data=i;
}
p->next=head;
p=head;
for(i=6;i>1;i--)
{
j=1;
while(j
j++;
}
old->next=p->next;
head=old->next;
p=head;
}
opt=head->data;
switch(opt)
{
case 1:
printf("\n\n\n\n\n\t\tLETS BETTER BE GOOD FRIENDS ");
break;
case 2:
printf("\n\n\n\n\n\t\tLOVE... AH... AH.. ");
break;
case 3:
printf("\n\n\n\n\n\t\tUH ONLY AN AFFECTION IT SEEMS ");
break;
case 4:
printf("\n\n\n\n\n\t\tENDS IN A MARRIAGE !!! ");
break;
case 5:
printf("\n\n\n\n\n\t\tYOU ARE MY FIRST ENEMY ");
break;
case 6:
printf("\n\n\n\t\tSOME HOW RELATED");
break;
}
getch();
}
Merits ::...
* Its totally fun and it no longer requires any manual calculation to enjoy it....
* It calculates exactly with or without the inclusion of initials....
* It helps one to understand the concepts related to circularly linked list...
Sample Output ::....
Enter the first name
JOSEPH
Enter the next name
STEPHEN
Ull surely love experiencing this..... Want to know ur real relationship... Try this out by clicking the link below....
http://www.ziddu.com/download.php?uid=a7Gdl5iqa6%2BcnOKnZ6qhkZSrZKqal5uu7
http://www.ziddu.com/download.php?uid=ZKqcnJioaLKilpbzZaqZnJGlaaeZlZymaA%3D%3D3Please do not take it seriously... Its just a fun game and nothing more than that....This program can be run on any C compiler as this is a C program... Your comments are always welcomed....
No comments:
Post a Comment