热门

最新

红包

立Flag

投票

同城

我的

发布
m0_45463480
Qt历险记
4 年前
truem0_45463480

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <sys/wait.h>

int main()
{
int n;
srand((unsigned)time(NULL));
pid_t pid=fork();


if(pid==0)
{
while(1)
{
fprintf(stderr, "%d",rand()%10);
sleep(1);
}
}
else
{
while(1)
{
fprintf(stderr, "%c",'A'+(rand()%26));
sleep(1);
}
}
}

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
https://www.jianshu.com/p/3bc76ad914f6vue中的excel
立即登录