热门

最新

红包

立Flag

投票

同城

我的

发布
m0_54381284
潮.eth
3 年前
truem0_54381284

阅读数学、科学和哲学领域的经典作品。不要读畅销书,不要看新闻。避免加入任何所谓的“读书俱乐部”,避免追求任何的社群认同。把真理置于社群认同之上。
关于编程也同理。

大学生的日常
CSDN App 扫码分享
分享
评论
7
打赏
  • 复制链接
  • 举报
下一条:
{ pid_t fpid; int count=0; fpid=fork(); if (fpid<0) printf("error in fork!"); else if (fpid == 0){ printf("i am the child process, my process id is %d\n",getpid()); printf("我是爹的儿子\n"); count++; } else { printf("i am the procrss, my process id is %d\n",getpid()); printf("我是孩子他爹\n"); count++; } printf("统计结果是: %d\n",count); return 0;
立即登录