Hi! I'm currently familiar with 2 'kinds' of main() function. The first one is:
Code:
int main();
int main(void);
int main(int argc, char *argv[]);
I think this is the standard 'main()' in C and C++.
The second one is:
Code:
int WINAPI
WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
I use this in Win32 Programming.
One day, I was trying to compile a program I found online (I forgot what program is it) and found a "t_main()" sitting on the main file. What does this main function do? Also, what are the other main function in C (and/or C++)?
Thanks in advance!