#include #include "master.h" int MASTERID = 0; int activeNodes[10]; //nodes active in the network. Assumes that all nodes have a unique id. char *currentPrograms[100]; //current programs : array of char pointers, each is a program string. void main() { initCurrentProgramsArray(); int newProgramIndex = manageUserInput(); printf("New program : %s \n", currentPrograms[newProgramIndex]); /* for(;;) { manageUserInput(); printf("Entrez le nom d'un programme : \n >> ") ; scanf("%s", program ); printf(" %d ", sizeof(program)); addToCurrentPrograms(program); //calls roundRobin to decide where it should be executed //sends it over the network //gets program return output and print }*/ } void initCurrentProgramsArray() { int i=0; while(i