On Jan 8, 11:05 am, Michael DOUBEZ <michael.dou...@free.frwrote:
int main(int argc, const char* argv[])
Just a nit, but that's not a standard declaration for main.
You're compiler may support it, but it's not required to.
There are only two standard declarations for main:
int main()
and
int main( int argc, char** argv )
Note that for historical reasons, these declarations are not
const correct. The const correct version for the second would
be:
int main( int argc, char* const* argv )
(and don't ask me for a rationale for that---it's just what the
C standard says).
--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34