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

📄 ex2_01.cpp

📁 Beginning Visual C++ 6源码。Wrox。
💻 CPP
字号:
// EX2_01.CPP
// A Simple Example of a Program
#include <iostream>

using namespace std;

int main()
{
   int apples, oranges;        // Declare two integer variables
   int fruit;                  // ...then another one

   apples = 5; oranges = 6;    // Set initial values
   fruit = apples + oranges;   // Get the total fruit

   cout << endl;               // Start output on a new line
   cout << "Oranges are not the only fruit... " << endl
        << "- and we have " << fruit << " fruits in all.";
   cout << endl;               // Start output on a new line

   return 0;                   // Exit the program
}

⌨️ 快捷键说明

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