C#编程--命名规则
来源:互联网 发布:知世故而不世故出自哪 编辑:程序博客网 时间:2024/06/10 20:50
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
//命名规则
//1,第一个字符是字母或者_
//2,不能使用关键字 using class namespace static void,,,,
//3,局部变量用之前必须要赋初值
int i;
Console.WriteLine(i);//错误 1 使用了未赋值的局部变量“i” D:\Visual Studio 2008\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs 17 31 ConsoleApplication1
}
}
}
本文出自 “Kenan_ITBlog” 博客,请务必保留此出处http://soukenan.blog.51cto.com/5130995/1076201
- C#编程命名规则
- C#编程命名规则
- C#编程--命名规则
- C#数据类型命名规则
- C#变量-命名规则
- c#命名规则
- c#的命名规则
- C#命名规则
- C# 命名规则
- java C#命名规则
- C#编码命名规则
- C# 命名规则
- C#命名规则
- C#命名规则
- C#控件命名规则
- C#控件命名规则
- c#命名规则
- C#变量命名规则
- ASP--文件和文件夹操作
- C#编程--基础入门
- 自己动手写操作系统——(3)保护模式的“问号”
- C#编程--字符串
- C#编程--convert类型转换
- C#编程--命名规则
- C#编程--C#运算符
- C#编程--流程控制if
- C#编程--流程控制switch case
- C#编程--while循环
- C#编程,for循环
- C#编程,枚举
- C#编程--数组,foreach遍历数组
- C#编程--函数