roberbarr respondió:
#include <time.h> int DayOfWeek(int day, int month, int year) { struct tm tm_t={0}; tm_t.tm_year = year - 1900; tm_t.tm_mon = month - 1; tm_t.tm_mday = day; tm_t.tm_hour = 12; mktime(&tm_t); return tm_t.tm_wday; } A ver si te sirve, te regresa el...