vendredi 3 avril 2015

converting this code from linux into windows(involves fork function), basically I want understand the code and its output

So, guys, pretty much I don't have Linux, and I tried to run this code (from one of my quizzes) in EclipseCPP, but I guess unisted.h is not regonized.


So anyone want give me advice on how to covert it into windows runnable code?


And also feel free to explain the output of this code to me, I don't have Linux installed on my machine.



#include <unisted.h>
#include <studio.h>
#include <stdlib.h>

int main(int argc, char * argv[])
{
fork ();
execvp(argv[1], fork);
printf(" ", /n);
return 0;
}

Aucun commentaire:

Enregistrer un commentaire