Thread: Defining main function!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    124

    Exclamation Defining main function!

    hi ppl...

    i'm using Borland C++ 6 and when i started working i never made a main function since i was using forms to test and run my program (using buttons on a form)...

    now i realized that i will need to have main cause i need to pass the input file as an argument to it...when i made main in the program, whatever i put in it is not activated when i run the code unless i press the buttons again! even if i put the methods which are activated by clicking a button in main...

    what could be the problem...

    my program structure is simple...

    Code:
    Astar class
    {
    
       - Node class
        {
    
        }
    
        - many functions 
    
    }
    
    - many functions
    //this is where i'm trying to use int main....
    what could be the problem...

    Thanks...

    Farooq
    Last edited by alvifarooq; 09-18-2004 at 05:03 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  2. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 01:49 PM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM
  5. Struct *** initialization
    By Saravanan in forum C Programming
    Replies: 20
    Last Post: 10-09-2003, 12:04 PM