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

📄 designers_network.cpp

📁 the source of dev_c++ most of them for game development
💻 CPP
字号:
// Designers Network
// Demonstrates logical operators

#include <iostream>
#include <string>
using namespace std;

int main() 
{
	cout << "\tGame Designer's Network\n";
	int security = 0;

	string username;
	cout << "\nUsername: ";
	cin >> username; 

    string password;
	cout << "Password: ";
	cin >> password; 

	if (username == "S.Meier" && password == "civilization")
	{
		cout << "\nHey, Sid.";
		security = 5;
	}

	if (username == "S.Miyamoto" && password == "mariobros")
	{
		cout << "\nWhat's up, Shigeru?";
		security = 5;
	}

	if (username == "W.Wright" && password == "thesims")
	{
		cout << "\nHow goes it, Will?";
		security = 5;
	}

	if (username == "guest" || password == "guest")
	{
		cout << "\nWelcome, guest.";
		security = 1;
	}

	if (!security)
		cout << "\nYour login failed.";

    return 0;
}

⌨️ 快捷键说明

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