cin>>p->year>>p->month>>p->day>>p->month>>p->hour>>p->day; 月改时 日改秒改成:cin>>p->year>>p->month>>p->day>>p->hour>>p->minute>>p->second; 试过了吗,还有什么问题