Thread: declaration of a function

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    1

    declaration of a function

    is this declaration correct

    Code:
    Void Lecture(File *f1, int X[][],int n, int p)  {   }

    this function may read from a text file and store elements in x[n][p]

    plzzz i'm getting started with c++, i realyy need ur help

  2. #2
    -bleh-
    Join Date
    Aug 2010
    Location
    somewhere in this universe
    Posts
    463
    it's "void", not "Void". and if you compile with c99 you can use the variable length array.
    Code:
    void Lecture(File *f1, int n, int p ,  int X[n][p])
    Last edited by nimitzhunter; 02-06-2011 at 10:47 PM.
    "All that we see or seem
    Is but a dream within a dream." - Poe

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL DC Buffer Renders slow
    By Lane the Great in forum Game Programming
    Replies: 10
    Last Post: 01-07-2011, 07:52 PM
  2. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 01:49 PM
  3. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  5. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM

Tags for this Thread