Use getpid () on the line in the POSIX, the Baidu search to know how to use, but in Windows Meizhe.
In Windows To use int _getpid ( void);
Of course, the need to include header file #include <process.h>
Use getpid () on the line in the POSIX, the Baidu search to know how to use, but in Windows Meizhe.
In Windows To use int _getpid ( void);
Of course, the need to include header file #include <process.h>