热门

最新

红包

立Flag

投票

同城

我的

发布
m0_73651896
Luyoung0001
3 年前
truem0_73651896

#include <stdio.h>
#include <sys/wait.h>
#include <unistd.h>
int main() {
int pid = fork();
if (pid == 0) {
write(1, "hello ", 6);
} else {
int status;
wait(&status);
write(1, "world\n", 6);
}
return 0;
}
终于会写 hello world 了

灌水乐园
CSDN App 扫码分享
分享
4
5
打赏
  • 复制链接
  • 举报
下一条:
PPT图片批量压缩
立即登录