#include
#include
#include
#include
int main()
{
int p1,p2;
if(p1=fork())
{
printf("I am child 1。\n");
fork();
}
else
{
if(p2=fork()) printf("I am child 2。\n");
else printf("I am parent。\n");
}
return 0;
}
zzled by him for the rest of the evenin
作业题请自己做……