diff --git a/XXIMovieCenter.cpp b/XXIMovieCenter.cpp index 319475f..081e42e 100644 --- a/XXIMovieCenter.cpp +++ b/XXIMovieCenter.cpp @@ -8,8 +8,12 @@ struct Data{ struct Data *next; }*head, *tail, *curr; +struct Data* generateMemorySpace(){ + return (struct Data*)malloc(sizeof(struct Data)); +} + struct Data *createNode(char name[], int duration){ - struct Data *temp = (struct Data*)malloc(sizeof(struct Data)); + struct Data *temp = generateMemorySpace(); strcpy(temp->name, name); temp->duration = duration; temp->next=NULL; diff --git a/XXIMovieCenter.exe b/XXIMovieCenter.exe new file mode 100644 index 0000000..5cecb84 Binary files /dev/null and b/XXIMovieCenter.exe differ