Thread: prototype syntax

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    450

    Thumbs up prototype syntax

    What is the syntax for the prototype of the following function?
    Code:
    int Game_Shutdown(void *parms = NULL, int num_parms = 0)
    {
    }

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Code:
    int Game_Shutdown(void *parms = NULL, int num_parms = 0);
    
    int Game_Shutdown(void *parms, int num_parms)
    {
      ...
    }
    Note that default arguments cannot be repeated in the function definition or you'll get errors.
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    450
    Thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM