摘要:
然后在下面这个类monitorsample的main()函数中我们要做的就是创建两个线程分别作为生产者和消费者,使用cellprod.threadrun()方法和cellcons.threadrun()方法对同一个cell对象进行操作。
public class monitorsample
{
public static void main(string[] args......
摘要:
latest snippet version: 1.0
using system;
namespace barsoom
{
/// <summary>
/// good 31-bit random number generator, returns uint.
/// </summary>
/// <remarks>
///
......
关于字符窜和数字分离
前面有人提了方法,大老鹰也提了意见
我这里给出一个更简单的办法,请批评指正
string input = "dongfangzhizhu19770822";
string alpha = "";
string number = "";
foreach(char c in input) {
if (char.isnumber(c))
number += c;
else
alpha += c;
}
摘要:
huffman 编码简介
......