Operating System - Linux
1753781 Members
7934 Online
108799 Solutions
New Discussion

Re: entering charcter or numerical value then checking

 
ghostdog74
Occasional Advisor

Re: entering charcter or numerical value then checking

try changing

getline number < "/dev/stdin"

to

getline number < "-"
lcpdl87
Occasional Advisor

Re: entering charcter or numerical value then checking

Thank you SO MUCH! That was what was wrong with it. I changed the wording a bit so suit it for myself but other than that it works great. Thank you again!