推断一周的某一天的函数接口
Posted mthoutai
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了推断一周的某一天的函数接口相关的知识,希望对你有一定的参考价值。
#define ret_ok 0
#define ret_err 1
char week_day[8] = {"Monday","Tuesday","Wedsday","Thursday","Friday","Saturday","Sunday"};
int Judge_day_of_the_week(int week_num,char *result_week_day)
{
if( week_num < 1 || week_num > 7 )
{
printf("Your input is error\n");
return ret_err;
}
else
{
*result_week_day = week_day[week_num-1];
}
return ret_ok;
}
以上是关于推断一周的某一天的函数接口的主要内容,如果未能解决你的问题,请参考以下文章
java 线程 设置每周的某一天的某个时间执行一次,用哪个方法。SchedulerTask