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

📄 score_rater.cpp

📁 the source of dev_c++ most of them for game development
💻 CPP
字号:
// Score Rater
// Demonstrates the if statement

#include <iostream>
using namespace std;

int main() 
{
	if (true)
		cout << "This is always displayed.\n\n";

	if (false)
		cout << "This is never displayed.\n\n";

	int score = 1000;

	if (score)
		cout << "Okay, at least you didn't score zero.\n\n";
	
	if (score > 500)
		cout << "You scored over 500.  Nice.\n\n";

	if (score == 1000)
	{
		cout << "You scored a perfect 1000!\n";
		cout << "Now that's impressive.\n\n";
	}

    if (score > 500)
    {
        cout << "You scored at least 500.\n";
        if (score >= 1000)
            cout << "You scored 1000 or more!\n";
    }

    return 0;
}

⌨️ 快捷键说明

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