Ryan E Mitchell
2005-08-18 15:59:50 UTC
For lab 3, the notes say that to exit from inputting data, the 'cmp'
command will recognize large values as negative, however I can't seem to
get that to work. I assume it's because i'm using 'getchar' and not
'getint' because 'getchar' only picks up the first character, but I the
program didn't seem to work if I used getint first and then getchar in
the subroutine.
Are there people out there using getint, or have any suggestions?
Thanks
Ryan
command will recognize large values as negative, however I can't seem to
get that to work. I assume it's because i'm using 'getchar' and not
'getint' because 'getchar' only picks up the first character, but I the
program didn't seem to work if I used getint first and then getchar in
the subroutine.
Are there people out there using getint, or have any suggestions?
Thanks
Ryan