⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wise2.c

📁 C.Game.Programming.For.Dummies原码
💻 C
字号:
#include <stdio.h>

#define WISE 1			//Wise is TRUE
#define SILLY !(WISE)		//Silly is FALSE
#define MILTON WISE		//Milton is Wise
#define MELVIN SILLY		//Melvon is not

void main()
{
	if(MILTON==WISE && MELVIN==SILLY)
		printf("Milton is wise and Melvin is silly.\n");
	if(MILTON==SILLY || MELVIN==SILLY)
		printf("Either Mitlon or Melvin is silly.\n");
	if(MILTON==WISE || MELVIN==WISE)
		printf("Either Milton or Melvin is wise.\n");
	if(MILTON==SILLY && MELVIN==WISE)
		printf("Milton is silly and Mevlin is wise\n");
	if(MILTON==SILLY || MELVIN==WISE)
		printf("Either Milton is silly or Melvin is wise.\n");
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -