问题描述
你好.
假设我们具有以下四个功能:
-IsGoodForHealthOfMe(bool bCondition)
-IsGoodForHealthOfFamily(bool bCondition)
-IsGoodForHealthOfFriends(bool bCondition)
-IsGoodForHealthOfWorld(bool bCondition)
...以及非理性的两种实现方式
对于逻辑条件bCondition
:
阿维森纳(980-1037),重新制作:
Hello.
Assumed we have four following functions:
- IsGoodForHealthOfMe(bool bCondition)
- IsGoodForHealthOfFamily(bool bCondition)
- IsGoodForHealthOfFriends(bool bCondition)
- IsGoodForHealthOfWorld(bool bCondition)
...and two implementations of the irrationality
for a logical condition bCondition
:
Avicenna (980 - 1037), remastered:
bool IsIrrational(bool bCondition)
{
if (!IsGoodForHealthOfMe(bCondition) ||
!IsGoodForHealthOfFamily(bCondition) ||
!IsGoodForHealthOfFriends(bCondition) ||
!IsGoodForHealthOfWorld(bCondition)) {
return true;
}
return false;
}
哈伯(1911年-1986年),重新制作:
Hubbard (1911 - 1986), remastered:
bool IsIrrational(bool bCondition)
{
if (!IsGoodForHealthOfMe(bCondition)) {
return true;
}
if (!IsGoodForHealthOfFamily(bCondition)) {
return !IsGoodForHealthOfMe(!bCondition);
}
if (!IsGoodForHealthOfFriends(bCondition)) {
return !IsGoodForHealthOfMe(!bCondition) ||
!IsGoodForHealthOfFamily(!bCondition)
}
if (!IsGoodForHealthOfWorld(bCondition)) {
return !IsGoodForHealthOfMe(!bCondition) ||
!IsGoodForHealthOfFamily(!bCondition) ||
!IsGoodForHealthOfFriends(!bCondition);
}
return false;
}
什么形式(可能是第三种形式)
对您来说正确吗?
谢谢 ! :)
What form (may be a third form)
would be correct for you, please ?
Thank you ! :)
推荐答案
对您来说,什么是不合理的结果?
What is an irrational result for you ?
.
:)
.
:)
这篇关于对您而言,非理性的结果是什么? :)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!