#ifdef _WIN32
#include <process.h>
#else
#include <unistd.h>
#endif
int main()
{
int iPid = (int)getpid();
std::cout<<"The process id is: "<<iPid<<std::endl;
return 0;
}
#ifdef _WIN32
#include <process.h>
#else
#include <unistd.h>
#endif
int main()
{
int iPid = (int)getpid();
std::cout<<"The process id is: "<<iPid<<std::endl;
return 0;
}