hello here is a though go4experts introduction is meant for newcomers to come along and say hi not to ask how do you program in this or how do u fix this or how do u hack this i think we should start enforcing what the topics are ment to be for programing is for programing into is for into chit chat is just chatting ethical hacking is for ethical hacking it seems that a lot of topics are getting started with questions and nothing about themselves in the introduction part of the forum is there anyway how we can fix this?
You can create rules but can change the habit of the people but can ask them not to repeat the same and there we see lot of people following it.
Code: #include<iostream.h> #include<conio.h> struct node { int data; char node.*link; }; void main() { node,*front,*temp,*cur; int ch; front=NULL; lab: clrscr(); cout<<"queue operation"<<endl; cout<<"1.insert \n 2.delete \n 3.display"<<endl; cout<<"\n Enter your choice"<<endl; cin<<ch; switch(ch); { case 1: { temp=new.node; cout<<"\n Enter the elements to be inserted"<<endl; cin>>temp=data; if(front==NULL) { temp->link=front; front=temp; cout<<"\n Inserted \n front="<<endl; } else { cur=front; while (cur->link!=null) cur=cur->link; temp->link=NULL; cur->link=temp; } break; } case 2: { if(front==NULL) cout<<"\n QUEUE EMPTY:"<<endl; else { cout<<"\n The elements deleted is:"<<front->data; front=front->link; } break; } case 3: { if(front==NULL) cout<<"\n QUEUE EMPTY:"<<endl; else { cout<<"\n content is:"<<endl; for(cur=front;cur!=NULL;cur=cur->link) cout<<cul->data<<endl; } break; } default; { cout<<"\n Enter from 1 to 3"<<endl; } break; } cout<<"\n Do you want to continue:(y>o)"; cin>>ch; if(ch!=0) goto lab; getch(); } please anybody say,. what is the concept behind in this program? and explain important line and commands?:shout: