Thread: HELP!!! parameters of funtion???????

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    6

    HELP!!! parameters of funtion???????

    we have our function with the needed pararments, but we dont' know what is wrong with it. When it complies it gives us this message: parse error before `.' and that the varibles are not declcared. Here is the first line of our function:

    int moveDown(int j, int i, Program program_ptr[][].count, Channel channel_ptr[].channel_name, Channel channel_ptr[].channel_name, Program program_ptr[][].show_name)


    Can anyone help. Program and Channel are struct's.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    You need to use the type as parameters, not the variable you intend to pass to the function.

    int moveDown(int j, int i, int count, char *name, char *channel_name, char *show_name)

    I guessed at the types, they could be different.

    -Prelude
    My best code is written with the delete key.

  3. #3
    frankzapo
    Guest
    And if that doesn't work still, i'm pretty sure you need to specify the size in the 2 dimensional array ONLY IN THE SECOND []. Hope that helps

    Mike Veilleux
    [email protected]
    http://instashoppe.itctv.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 07-21-2008, 06:04 AM
  2. Parameters quick Question
    By lifeis2evil in forum C++ Programming
    Replies: 2
    Last Post: 11-18-2007, 11:12 PM
  3. function with variable number of parameters
    By mikahell in forum C++ Programming
    Replies: 3
    Last Post: 07-23-2006, 03:35 PM
  4. Funtion pointer in structure
    By Xzyx987X in forum C Programming
    Replies: 1
    Last Post: 07-03-2004, 03:05 AM
  5. Passing parameters from VB to C++ through ActiveX DLL
    By torbjorn in forum Windows Programming
    Replies: 0
    Last Post: 12-10-2002, 03:13 AM