Bare with me, i'm new at this also. but i remember reading something about scanf and strings.

scanf("%s%d",&day,&num);

day should not be preceded by the ampersand since it is a string.
...