Results 1 to 4 of 4

Thread: Correct Syntax For A Function?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Cool

    I seem to have forgotten this from my class, what the correct syntax?

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    returntype name (type param1, type param2, type param3, ...)


    for example

    int AddNumbers (int param1, int param2)
    {

    return param1 + param2;

    }

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    that looks like me code...but yours works...cheers!

  4. #4
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Wink

    Check out:

    http://www.about.com

    to find quick tips for programming


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width