例如:
Random rnd =new Random();
int m=rnd.Next(9);
Random rnd =new Random();
int m=rnd.Next(9);
解决方案 »
- 在线等,方法调用问题
- dataGridView2中文字无法对齐
- 分页问题
- 求牛人推荐些学习的书籍
- 请高手指教如下代码什么意思?
- 循环DataTable里的值?
- 写了个接收页面的程序,主要是通过http传输值给一个send.asp这个页面,但是send.asp接收的中文数据出现乱码,请各位高手进来指点一下
- 我的VS2005.net为什么不能用?
- Distributed Transaction Coordinator服务不能启动会不会影响创建Web Service
- Console.............
- c# 操作 EXCEL Range.AutoFill() 出现 Range Class AutoFill方法失败
- config配置文件如何合并到exe文件中去?
int sum
private int sum(int i)
{
if(i==1)
return 1;
else
sum=+sum(i-1);
}
private void getname( string name )
{
if ( name != "你的名字")
getname("新的名字");
else
Console.Write(“你的名字”);
}
/// <summary>
/// 递归求阶乘
/// </summary>
/// <param name="n"></param>
/// <returns></returns>
private int PN(int n)
{
if (n <= 0)
{
return 1;
}
return n * PN(n - 1);
}
{
int c=a+b;
if(c<100)
return c=GetSum(c,b);
else
return c;
}