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

This is a discussion on HELP!!! parameters of funtion??????? within the C++ Programming forums, part of the General Programming Boards category; we have our function with the needed pararments, but we dont' know what is wrong with it. When it complies ...

  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,796
    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
    MikeABiker@Aol.com
    http://instashoppe.itctv.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 07-21-2008, 07: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, 04:35 PM
  4. Funtion pointer in structure
    By Xzyx987X in forum C Programming
    Replies: 1
    Last Post: 07-03-2004, 04: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

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