M
mosfet
Hi,
I would like to know how usually you wrapp an ugly main fonction into a
;-) C++ method.
I would like to write a simple console application that read a XML file
so it starts like this :
I was thniking about defining a MyApp class with a Init and Run methode:
class MyApp
{
public:
....
void Init(int argc, char* argc[]);
int Run();
};
int main(int argc, char* argv[])
{
MyApp myApp;
myApp.Init(argc, argv);
return myApp.Run();
}
Better idea ?
I would like to know how usually you wrapp an ugly main fonction into a
;-) C++ method.
I would like to write a simple console application that read a XML file
so it starts like this :
I was thniking about defining a MyApp class with a Init and Run methode:
class MyApp
{
public:
....
void Init(int argc, char* argc[]);
int Run();
};
int main(int argc, char* argv[])
{
MyApp myApp;
myApp.Init(argc, argv);
return myApp.Run();
}
Better idea ?