这段代码为什么会出错?帮看看
#include "stdio.h"
#include "stdlib.h"
#include "time.h"
#include "conio.h"
#include "memory.h"
#include "string.h"
main()
{
char timebuf[9],datebuf[9];
char now[9];
int tmp1,tmp2;
tmp1=tmp2=0;
_strtime(timebuf);
printf("\n%s",timebuf);
_strdate(datebuf);
printf("\n%s",datebuf);
strcpy(timebuf,"16:28:00");
strcpy(datebuf,"09/18/01");
tmp1=2000+atoi(datebuf[6])*10+atoi(datebuf[7]); ///?????
memcpy(now,&tmp1,2);
getch();
}
单步跟踪到问好的语句处就不行了