假如两个整数都是奇数或都是偶数,则它们具有相同的奇偶性;
If two integers are both odd or both even, they are said to have the same parity; if one is odd and one even, they have different parity.
奇偶校验:加于一组二进制数字内的一个校验数元。它跟据系统逻辑,使总数为奇数或偶数。
Parity bit: a check bit added to a series of binary digits to make the total odd or even according to the logic of the system.
通常专门设置一个奇偶校验位,用它使这组代码中“1”的个数为奇数或偶数。
Usually set up a dedicated parity bit, it makes this group code "1" is odd or even.
从键盘输入1位十进制值,判断其奇偶性,若为奇数,在屏幕上输出1,否则为0。
Keyboard input from a decimal value, to determine its parity, if odd, the screen output 1, otherwise to 0.
从键盘输入1位十进制值,判断其奇偶性,若为奇数,在屏幕上输出1,否则为0。
Keyboard input from a decimal value, to determine its parity, if odd, the screen output 1, otherwise to 0.
应用推荐