![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
sysustriker
这个作者很懒,什么都没留下…
展开
-
编译时常量 const VS 运行时常量 readonly
//编译时常量public const int constValue=100;//运行时常量public static readonly int readonlyValue=200; 代码将被编译成MSIL(微软中间语言),在MSIL中,constValue直接被100所替换,且以后不会再更改;readonlyValue则只是变成对其变量的引用,其值在以后还可以改变。所以一原创 2010-01-21 20:05:00 · 749 阅读 · 0 评论 -
C# 指数函数
double a=2;double b=Math.Pow(a,3);可得b=8 专有的平方根函数Math.Sqrt(a)也可由Math.Pow(a,0.5)代替。原创 2010-01-21 19:35:00 · 12243 阅读 · 0 评论 -
C# 2.0 在Picturebox绘制 网格线
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace Roading001{ public partial原创 2010-01-21 20:17:00 · 5118 阅读 · 0 评论