check if a argv[1] contain all numbers

This is a discussion on check if a argv[1] contain all numbers within the C++ Programming forums, part of the General Programming Boards category; Problem SOLVED. Thanks everyone...

  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 02:19 AM.

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,260
    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, 04: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, 03: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, 09:45 PM
  5. check for numbers
    By Unregistered in forum C Programming
    Replies: 20
    Last Post: 07-04-2002, 01:15 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21