There are so two lines
#include <stdio.h>
#include <tchar.h>
We can find the _tmain macro definition in header file <tchar.h>
#define _tmain Main
So, after precompiling, _tmain becomes main.
Main () is a function entry for 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 that Windows provides for automatic conversion of the Unicode character set and the ANSI character set.
The function signature is:
int _tmain (int argc, TCHAR *argv[])
When your program's current character set is Unicode, int _tmain (int argc, TCHAR *argv[]) is translated into
int wmain (int argc, wchar_t *argv[])
When your program's current character set is ANSI, int _tmain (int argc, TCHAR *argv[]) is translated into
int main (int argc, char *argv[])