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

📄 switch.cpp

📁 包含C++中map
💻 CPP
字号:
#include<iostream>

using namespace std;

int main()
{
	const char* msg_to_usr(int tries)
	{
		const int cnt=5;
		static const char* guess[cnt]=
		{
			"Go on ,please make a guess. ",
			"Oops, nice guess but not quite if.",
			"Hmm,sorry.try the third! ",
			"Ah,try the fourth please.",
			"Oh,the fourth time is wrong,too ."
		};
		if(tries<0)
			tries=0;
		else if(tries>=cnt)
			tries=cnt-1;
		return guess[tries];
	}
	return 0;
}

⌨️ 快捷键说明

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