他通常在星期一到星期五工作,有时,He works on Saturdays [](or)Sundays 中间那个or我改成了and对不对

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/18 19:16:33

他通常在星期一到星期五工作,有时,He works on Saturdays [](or)Sundays 中间那个or我改成了and对不对
他通常在星期一到星期五工作,有时,He works on Saturdays [](or)Sundays 中间那个or我改成了and对不对

他通常在星期一到星期五工作,有时,He works on Saturdays [](or)Sundays 中间那个or我改成了and对不对
对的
and 表并列一般用在陈述句中
or 一般则用在疑问句或者是否定句中

介词和文中表达的意思不对

他通常在星期一到星期五工作
He usually works from Monday to Friday.
He doesn't work both Saturday and Sunday
星期六和星期日他通常不工作
He works on Saturdays and Sundays
他通常在星期六和星期日工作
He works on Saturda...

全部展开

他通常在星期一到星期五工作
He usually works from Monday to Friday.
He doesn't work both Saturday and Sunday
星期六和星期日他通常不工作
He works on Saturdays and Sundays
他通常在星期六和星期日工作
He works on Saturdays and Sundays
他通常在星期六 或者 星期日 工作 (一周工作一天,星期六 或 星期日)

收起

we simply use 1-7 standing for monday to sunday(or 0-6, sunday-saturday). refer to the following logic.
bool IsUsual(int dayNum)
{
if(dayNum >= 1 || dayNum <= 5) return true;
...

全部展开

we simply use 1-7 standing for monday to sunday(or 0-6, sunday-saturday). refer to the following logic.
bool IsUsual(int dayNum)
{
if(dayNum >= 1 || dayNum <= 5) return true;
else if(6 == dayNum || 7 == dayNum) reurn false; //here is the answer
else printf("error: invalid input!");
}
the symbol "||" means "or" in c programming language.

收起