DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Declaring functions

  1. #1
    Join Date
    Jan 2006

    Declaring functions

    Hi, in the project im making i need to use a function in 2 different parts of the Coding, but i can't because i get the error that i haven't declared it ( i know how to ) but i cant move it because a get the error in another part of the function then :confused: is it possible to do sumthing so it dosent matter what order your functions are in? :D

  2. #2
    Join Date
    Nov 2003
    yes, declare them before you refer to them in another function. A declaration isn't a definition, so you can repeat it mutiple times:

    int func(); //declaration

    void g()

    int func() //definition
    return 0;
    Danny Kalev

Similar Threads

  1. Replies: 5
    Last Post: 08-15-2005, 12:52 AM
  2. virtual functions & name hiding
    By pseudo in forum C++
    Replies: 2
    Last Post: 04-04-2005, 04:16 PM
  3. Replies: 16
    Last Post: 05-26-2001, 04:09 PM
  4. RRAS Dll functions in VB
    By Duke Witchel in forum VB Classic
    Replies: 8
    Last Post: 04-26-2000, 11:43 PM
  5. RRAS Dll functions in VB
    By Duke Witchel in forum VB Classic
    Replies: 0
    Last Post: 04-20-2000, 11:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center