main.cpp

来自「台湾中原大学 Visual C++程序入门教程」· C++ 代码 · 共 20 行

CPP
20
字号
#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    for (int i = 0; i <= 10; ++i)
    {
        int normal = 0;
        static int stint = 0; ++normal; ++stint;
        cout << "normal integer:" << normal <<endl;
        cout << "static integer:" << stint << "\ti = " << i;
        cout << endl << "------------------------------------------" << endl;
    }

    system("PAUSE");
    return EXIT_SUCCESS;
}

⌨️ 快捷键说明

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