Thread: Cela...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    15

    Smile Cela...

    thank you so much
    that code works, except, for a large integer....the code changes it this is what my output looked like:
    Code:
    [root@CPE0010b53e159e-CM root]# gcc getData.c
    [root@CPE0010b53e159e-CM root]# ./a.out
    Please Enter in a positive number, then hit ENTER
    saf
    invalid integer, try again: 32
    32 is the number you have entered
    [root@CPE0010b53e159e-CM root]# ./a.out
    Please Enter in a positive number, then hit ENTER
    43243143076434387
    2147483647 is the number you have entered
    [root@CPE0010b53e159e-CM root]#
    see, it changed it, I would like a large integer error to come up instead, then ask again.
    thanks eveyone!
    from Mel

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Please keep your questions about one problem to the same thread, m'kay?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. array help
    By john_murphy69 in forum C Programming
    Replies: 3
    Last Post: 02-12-2003, 12:30 PM
  2. sscanf string parsing
    By penney in forum C Programming
    Replies: 5
    Last Post: 02-03-2003, 11:28 AM