摘要: 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 Console.WriteLine(GetValue()); 6 Console.Rea... 阅读全文
posted @ 2014-06-02 17:26 niaomingjian 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1.为几万行数据加序号 先在A1,A2分别输入1,2,选中A1:A2,双击A2右下角那个小方块。 数据有多少行就会自动填充多少行(要求:B列数据连续) 2.统计一列中单元格的值等于某个值的单元格的个数 =COUNTIF(A1:A10,123) 计算列A1至A10单元格中的值等于123的单元格的个数 阅读全文
posted @ 2014-06-02 16:20 niaomingjian 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Runtime.InteropServices; 6 7 namespace ... 阅读全文
posted @ 2014-06-02 16:18 niaomingjian 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 1.const 表示的是常量(constant),始终不会发生改变,在编译时就确定了。所以类中定义一个常量可以被类访问也可以被类的实例访问。定义时就不能和static一起用。如果用了也是没有作用的,所以语法就规定其是无效的。在声明时同时初期化。 private const string Name=... 阅读全文
posted @ 2014-06-02 14:36 niaomingjian 阅读(179) 评论(0) 推荐(0) 编辑