hie...i have a easy..but don't seem to be working code
somehow the second time this thing is looping,Code:while (check == 0) { printf("\nEnter a character:\n"); scanf("%c",&val); curr->next=initLLNode(val); curr=curr->next; printf("Do you still want to enter more characters\n1. YES\n2. NO\nChoose either 1 or 2:"); scanf("%d",&chose); num=num+1; if (chose==2) { check = 1; } }
it does not stop and prompts me for "Enter a character"
it displays ("Do you still want to enter more characters\n1. YES\n2. NO\nChoose either 1 or 2:" and only stop to ask me to
choose yes or no there..
anyone can help?



LinkBack URL
About LinkBacks



