我想知道蕴含运算反映了什么?
蕴涵运算符的真值表:
using System;
class Implication
{
static void Main()
{
bool p = false, q = false;
int i, j;
for (i = 0; i < 2; i++)
{
for (j = 0; j < 2; j++)
{
if (i == 0) p = true;
if (i == 1) p = false;
if (j == 0) q = true;
if (j == 1) q = false;
Console.WriteLine("p is " + p + ", q is " + q);
if (!p | q) Console.WriteLine(p + " implies " + q +
" is " + true);
Console.WriteLine();
}
}
}
}
我的意思是为什么我们使用隐式操作?