Thread: Bad Parameter ???

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    178

    Bad Parameter ???

    Okay so i'm reading petzold's book trying to get this program to compile, this is the second program of his that has done this to me, it gives me the following errors

    \\sndc1\users\jwallace\progra~1\api\devcaps1.c:5: warning: invalid character in macro parameter name

    \\sndc1\users\jwallace\progra~1\api\devcaps1.c:5: badly punctuated parameter list in `#define'

    which all point to this
    Code:
    #define NUMLINES((int)(sizeof devcaps / sizeof devcaps[0]))
    what is wrong with it???? it is exactly like it is in the book. if it matters i am using dev-cpp and compiled it as a c source
    Oi Oi Oi!!!!

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    I answered this in Windows programming.

    You evil cross poster you!

    You'll sentenced to the mods' version of hell where all the questions are 'how do I clear the screen'.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    178
    well technically it wasn't a cross post. the other one began by talking about something else and then someone asked me if i was having a seperate problem . please have mercy upon my soul
    Oi Oi Oi!!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. error: storage class specified for parameter
    By aim4sky in forum C Programming
    Replies: 20
    Last Post: 03-16-2009, 02:37 AM
  2. parameter passing and pointers
    By pokiepo in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 12:13 AM
  3. Poker bad beats
    By PJYelton in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 01-15-2005, 11:42 PM
  4. Shocking(kind of)
    By Shadow in forum A Brief History of Cprogramming.com
    Replies: 25
    Last Post: 12-10-2002, 08:52 PM
  5. good news and bad news
    By Garfield in forum A Brief History of Cprogramming.com
    Replies: 25
    Last Post: 10-27-2001, 07:31 AM