Main () is the function entry of standard C++. Standard C++ program entry point function, default character encoding format ANSI.
The function signature is:
int main();
int main(int argc,char * argv[]);
_tmain () is a program entry point function provided by Microsoft operating system (windows), which is used for automatic conversion between unicode character set and ANSI character set.
The function signature is:
int _tmain(int argc,TCHAR *argv[])
When the current character set of your program is unicode, int _tmain(int argc, TCHAR *argv[]) will be translated into.
int wmain(int argc,wchar_t *argv[])
When the current character set of your program is ANSI, int _tmain(int argc, TCHAR *argv[]) will be translated into.
int main(int argc,char *argv[])
Anyway, that's the difference.
If you want to know more, you should learn something about ANSI, unicode and so on. Specific problems have been bothering me. Sometimes programming is all kinds of problems that appear garbled, and our level is limited. Study hard, study hard