Any idea how to make restrictions in link list.
im still confuse
what will i need to make restrictions??
i know the isdigit isalpha etc.
for example i can only enter DIGIT,
ilovephil
0
Light Poster
Recommended Answers
Jump to Postfor example i can only enter DIGIT
using if else statements?
Jump to Postnext time please put the code between
tags to preserve indentation and and put in number lines to make it a lot easier to read
Now for the code, it doesn't pass the loop with the isalpha conditional because the value of found is not equal to …
Jump to Postat your last code, it would always pass that loop if you always initialize variable found back to 1 after the loop
Jump to Postsince number is an integer and not a character datatype using isdigit and isalpha wouldn't be possible
To meet your needs the only workaround I can think of is checking the return value of scanf, it returns 1 when a non-digit number is enteredint number; char …
All 16 Replies
zeroliken
79
Nearly a Posting Virtuoso
ilovephil
0
Light Poster
ilovephil
0
Light Poster
zeroliken
79
Nearly a Posting Virtuoso
ilovephil
0
Light Poster
zeroliken
79
Nearly a Posting Virtuoso
ilovephil
0
Light Poster
ilovephil
0
Light Poster
zeroliken
79
Nearly a Posting Virtuoso
ilovephil
0
Light Poster
ilovephil
0
Light Poster
zeroliken
79
Nearly a Posting Virtuoso
zeroliken
79
Nearly a Posting Virtuoso
ilovephil
0
Light Poster
zeroliken
79
Nearly a Posting Virtuoso
ilovephil
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.