UTA
Search This Blog
Monday, 4 November 2013
Tuesday, 24 September 2013
link list in c with insert dispose delete modify show find functions
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<alloc.h>
#include<process.h>
void enter_record();
void show_list();
void dispose();
void delete_record();
void find();
void modify();
struct student
{
int value;
*next;
};
struct student *header,*current,*temp;
void main()
{
int ch;
clrscr();
while(1)
{
printf("======================");
printf("\n\n 1.enter record.\n 2.show list.\n 3.dispose.\n 4.delete record.\n 5.find.\n 6.modify.\n 7.exit\n");
printf("======================\n");
ch=getch();
switch(ch)
{
case '1':
enter_record();
break;
case '2':
show_list();
break;
case '3':
dispose();
break;
case '4':
delete_record();
break;
case '5':
find();
case '6':
modify();
case '7':
exit(1);
default:
printf("you have enter wrong choice");
}
}
// getch();
}
void enter_record()
{
printf("\nEnter id: \n");
current=(struct student *)malloc(sizeof(struct student));
scanf("%d",¤t->value);
current->next=NULL;
if(header==NULL)
header=current;
else
temp=header;
while(temp->next!=NULL)
{
temp=temp->next;
}
temp->next=current;
}
void show_list()
{
if(header==NULL)
printf("\nlist is empty\n");
temp=header;
while(temp!=NULL)
{
printf("\n\n id is :%d\n",temp->value);
temp=
temp->next;
}
}
void dispose()
{
struct student *temp;
while(header!=NULL)
{
temp=header->next;
free(header);
header=temp;
}
printf("\nlist is destroy\n");
}
void delete_record()
{
struct student *prev;
int mc;
printf("\nenter id to b deleted: \n");
scanf("%d",&mc);
if(header==NULL)
printf("\nlist is empty\n");
else if(header->value==mc)
{
temp=header->next;
free(header);
header=temp;
}
else
{
temp=header;
while(temp->next!=NULL&&temp->value!=mc)
{
prev=temp;
temp=temp->next;
prev->next=temp->next;
free(temp);
}
prev->next=NULL;
free(temp);
}
}
void find()
{
int m;
temp=header;
printf("\nenter id to find: \n");
scanf("%d",&m);
while(temp->next!=NULL&&temp->value!=m)
{
temp=temp->next;
}
printf("\nthe required id is present in list: %d \n",temp->value);
show_list();
}
void modify()
{
int id,u;
//printf("enter id");
//scanf("%d",id);
temp=header;
printf("\n enter id to find whether is is present or not\n");
scanf("%d",&id);
while(temp->next!=NULL&&temp->value!=id)
{
temp= temp->next;
}
printf("the required result is present in list: %d ",temp->value);
printf("\nnew id\n");
scanf("%d",&u);
temp->value=u;
printf("\nid modified\n");
show_list();
getch();
}
#include<conio.h>
#include<stdlib.h>
#include<alloc.h>
#include<process.h>
void enter_record();
void show_list();
void dispose();
void delete_record();
void find();
void modify();
struct student
{
int value;
*next;
};
struct student *header,*current,*temp;
void main()
{
int ch;
clrscr();
while(1)
{
printf("======================");
printf("\n\n 1.enter record.\n 2.show list.\n 3.dispose.\n 4.delete record.\n 5.find.\n 6.modify.\n 7.exit\n");
printf("======================\n");
ch=getch();
switch(ch)
{
case '1':
enter_record();
break;
case '2':
show_list();
break;
case '3':
dispose();
break;
case '4':
delete_record();
break;
case '5':
find();
case '6':
modify();
case '7':
exit(1);
default:
printf("you have enter wrong choice");
}
}
// getch();
}
void enter_record()
{
printf("\nEnter id: \n");
current=(struct student *)malloc(sizeof(struct student));
scanf("%d",¤t->value);
current->next=NULL;
if(header==NULL)
header=current;
else
temp=header;
while(temp->next!=NULL)
{
temp=temp->next;
}
temp->next=current;
}
void show_list()
{
if(header==NULL)
printf("\nlist is empty\n");
temp=header;
while(temp!=NULL)
{
printf("\n\n id is :%d\n",temp->value);
temp=
temp->next;
}
}
void dispose()
{
struct student *temp;
while(header!=NULL)
{
temp=header->next;
free(header);
header=temp;
}
printf("\nlist is destroy\n");
}
void delete_record()
{
struct student *prev;
int mc;
printf("\nenter id to b deleted: \n");
scanf("%d",&mc);
if(header==NULL)
printf("\nlist is empty\n");
else if(header->value==mc)
{
temp=header->next;
free(header);
header=temp;
}
else
{
temp=header;
while(temp->next!=NULL&&temp->value!=mc)
{
prev=temp;
temp=temp->next;
prev->next=temp->next;
free(temp);
}
prev->next=NULL;
free(temp);
}
}
void find()
{
int m;
temp=header;
printf("\nenter id to find: \n");
scanf("%d",&m);
while(temp->next!=NULL&&temp->value!=m)
{
temp=temp->next;
}
printf("\nthe required id is present in list: %d \n",temp->value);
show_list();
}
void modify()
{
int id,u;
//printf("enter id");
//scanf("%d",id);
temp=header;
printf("\n enter id to find whether is is present or not\n");
scanf("%d",&id);
while(temp->next!=NULL&&temp->value!=id)
{
temp= temp->next;
}
printf("the required result is present in list: %d ",temp->value);
printf("\nnew id\n");
scanf("%d",&u);
temp->value=u;
printf("\nid modified\n");
show_list();
getch();
}
Saturday, 24 August 2013
Monday, 20 May 2013
Saturday, 2 March 2013
Sunday, 24 February 2013
FExplorer

Agar ap apne memory card ko password laga k bhool gaye hein tu dont worry, ab 50% se ziada chances hein k ap apna data loose kiye baghair es problem se nijaaat ...paa lo gay.
1- For Nokia s60 series 1, series 2 and some phones of s60 v3
Ap sb se pehly apne mobile mein FExplorer name ka File Manager Install Karein, Umeed hy ye ap ko ap net pe easily mil jaye ga. Mujhy Thread mein file attach karna nahi aata warna zarooor karta.
Us k bad apne mobile ki C drive open karein aur System ka folder open karein wahan aik file hogi mmcstore k naame se us ka name change kar k mmcstore.txt kar dein aur us file ko apne pc mein copy kar lein via bluetooth, data cable or infrared
Us k bad us file ko notepad mein open karein inshALLAH us k end mein ap ka password likha hoga
2-For Nokia s60v3, s60v5 and latest phones
Es mein password bhool janay k 2 option hein. aik tu ye k hum ne password lagaya aur bhool gaye. Es sorat mein yehi hl h mem card ko market se ya Kisi E-series k miobil mein laga k format karwa lein. yad rahay k es sorat mein sb data zaya ho jaye ga
Dosra msla jo en mobile k mem card mein aa jata hy wo ye k hum ne memory card pe koi password set nai kia magar set restart karny k bad ya wese he memory card password mangna shuru kar daita hy. Es tariqay mein ap baghair data loose kiye mem card ka password remove kar sakty hein ap ko karna ye hoga k mobile ka menu open karein
setting mein jaein
general mein jaein
security mein jaein
phone and sim card mein jaein
Edhar aik option hoga Remote phone locking
agar ap ne ye pehly on kia hoa tha tu jo es ka password rakha tha wohi ap k memory card ka password bhi hoga. agar nahi rakha tha tu yahan koi bhi new set karein aur ap ka new remote locking message ap k memory card ka password bn jaye ga
3-For java Phones
Ap please please market se ja kar he mobile ka mem card format karwa lein....
ThnksSee More
1- For Nokia s60 series 1, series 2 and some phones of s60 v3
Ap sb se pehly apne mobile mein FExplorer name ka File Manager Install Karein, Umeed hy ye ap ko ap net pe easily mil jaye ga. Mujhy Thread mein file attach karna nahi aata warna zarooor karta.
Us k bad apne mobile ki C drive open karein aur System ka folder open karein wahan aik file hogi mmcstore k naame se us ka name change kar k mmcstore.txt kar dein aur us file ko apne pc mein copy kar lein via bluetooth, data cable or infrared
Us k bad us file ko notepad mein open karein inshALLAH us k end mein ap ka password likha hoga
2-For Nokia s60v3, s60v5 and latest phones
Es mein password bhool janay k 2 option hein. aik tu ye k hum ne password lagaya aur bhool gaye. Es sorat mein yehi hl h mem card ko market se ya Kisi E-series k miobil mein laga k format karwa lein. yad rahay k es sorat mein sb data zaya ho jaye ga
Dosra msla jo en mobile k mem card mein aa jata hy wo ye k hum ne memory card pe koi password set nai kia magar set restart karny k bad ya wese he memory card password mangna shuru kar daita hy. Es tariqay mein ap baghair data loose kiye mem card ka password remove kar sakty hein ap ko karna ye hoga k mobile ka menu open karein
setting mein jaein
general mein jaein
security mein jaein
phone and sim card mein jaein
Edhar aik option hoga Remote phone locking
agar ap ne ye pehly on kia hoa tha tu jo es ka password rakha tha wohi ap k memory card ka password bhi hoga. agar nahi rakha tha tu yahan koi bhi new set karein aur ap ka new remote locking message ap k memory card ka password bn jaye ga
3-For java Phones
Ap please please market se ja kar he mobile ka mem card format karwa lein....
ThnksSee More
Friday, 22 February 2013
DESTINY TRAVEL SERVICES
Destiny Travel Services
Expert in VISA processing with 100% success rate of Malaysia , Thailand , China , Singapore , Dacca , Qatar , Oman , Dubai , Moscow , Turkey , Indonesia ... and many worry countries .(financial document assistance also available)
Get best rates on domestic and international ticketing
Best UMMARH and HAJJ packages ..
for more details
e-mail us at : sohaibzafar2000@yahoo.com
call us : +923002071280
Subscribe to:
Posts (Atom)