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