zanotowane.pldoc.pisz.plpdf.pisz.plgammadesign.htw.pl
|
Tell a Friend About This Web
Site! |
| |
|
|
|
felici portal
i want to write a program and that program should be like this.. user need to enter name of state and the population of their state and i would like to print back that state and their population... #include <stdio.h> #include <conio.h> #include<stdlib.h> struct node char state; int population; struct node* next; *front,*rear; void enqueue(char enter_state,int enter_population); int dequeue(); void display(); void main() int choice; char enter_state; int enter_population; rear=NULL; front=NULL; while(1) printf("\nEnter:\n1->Insert\n2->Dele… scanf("%d",&choice); switch(choice) case 1: printf("Please enter your name of state :"); scanf("%c",&enter_state); printf("\nPlease enter your population of your state : "); scanf("%d",&enter_population); enqueue(enter_state,enter_populatio… break; case 2: enter_state=dequeue(); enter_population=dequeue(); printf("Your name of state %c where the population is %d has been deleted!!!",enter_state,enter_population… break; case 3: display(); break; default: printf("~~~Exit~~~"); getch(); exit(0); break; void enqueue(char enter_state,int enter_population) int dequeue() struct node *p; char enter_state; int enter_population; if(front==NULL void display() struct node *t; t=front; while(front==NULL and lastly...how if i want to already declare the name of state and their population in this program?
___________________ Zarabianie w internecie
zanotowane.pldoc.pisz.plpdf.pisz.plsprzedamnadjeziorem.opx.pl
|
|
|
|