C++学习记录

#include <stdio.h>
#include <process.h>
#include <sys/types.h>

int main()
{
    pid_t pid;
    pid = getpid();
    printf("%d
" ,pid);
    getchar();
}
获取程序进程编号
原文地址:https://www.cnblogs.com/cenguanliang/p/5430105.html