2-1 关键字与保留字 关键字(keyword) 保留字(reserved word) 2-2 标识符(Identifier) 案例 class Test{ public static void main(String[] args) { System.out.println("Hello World!"); } } class _9Hello{ } class Public{ } class publicstatic{ } class PublicStatic{ } class Xi
以下为本次实践代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace ConsoleTest { class Program { static void Main(string[] arg
C++中共有四种存储类别标识符:auto/static/register/extern 1.auto 函数或分程序内定义的变量(包括形参)可以定义为auto(自动变量).如果不指定存储类别,则隐式定义为auto. 例如,函数类有如下定义: auto int x , y ; 等价于: int x , y ; 2.static 除了形参,可以将局部变量和全局变量定义为静态变量.用static标识符. static int a;//a是全局静态变量 f() {static int b = 1;}//b