Thread: check if a argv[1] contain all numbers

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    6

    check if a argv[1] contain all numbers

    Problem SOLVED. Thanks everyone
    Last edited by appointment; 08-19-2009 at 01:19 AM.

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Code:
    if (!isdigit(n[pos]));
    Get rid of that semicolon at the end of your if statement.
    bit∙hub [bit-huhb] n. A source and destination for information.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to put a check on an extern variable set as flag
    By rebelsoul in forum C Programming
    Replies: 18
    Last Post: 05-25-2009, 03:13 AM
  2. spell check in C using a dictionary file
    By goron350 in forum C Programming
    Replies: 10
    Last Post: 11-25-2004, 06:44 PM
  3. Program that prints numbers in columns
    By rayrayj52 in forum C++ Programming
    Replies: 12
    Last Post: 09-20-2004, 02:43 PM
  4. Adding Line numbers in Word
    By Mister C in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 06-24-2004, 08:45 PM
  5. check for numbers
    By Unregistered in forum C Programming
    Replies: 20
    Last Post: 07-04-2002, 12:15 PM