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

📄 subblock.cpp

📁 VC源代码大全(精华版)
💻 CPP
字号:
#include    <stdio.h>

int x = 1;            // declare a global instance of x
void FunctionOne();   // Prototype our function

main ()
{
    printf ("The global x is %d\n", x);
    FunctionOne ();
    printf ("The global x is still %d\n", x);
}

void FunctionOne ()
{
int x = 2;
    printf ("The local x in the function is %d\n", x);
    {
    int x = 3;
        printf ("The local x in a block is %d\n", x);
    }
    printf ("Block has ended. x = %d\n", x);
}

⌨️ 快捷键说明

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