解决方案 »
- 如何在多线程中生成 随机字符串,急~~~~~
- 按Ctrl+Alt+delte 无法出现任务管理器,自己去system32目录运行taskmar.exe.提示“另一个程序正在使用此文件”
- 将C++函数导入到C#开发中来,如果函数的参数是指针该怎么办?
- IComparer的使用
- 插入money类型数据
- 这样的XML用xmltextreader来怎么读取
- How to catch the Exception when using BeginInvoker, Give me some tips, thank you(Just use English to attract more attentions)
- 新手提问???
- 关于DataGrid事件触发的问题
- 想用C#写一个外部API
- 逐字读取文本
- WPF 窗体传值的问题
string s = "abc"; s[0] = 'a';
<< 5,左移,c#中也是这个
int hash = 5381;
for (int i = 0; i < str.Length; i++)
{
hash += (hash << 5) + str[i];
}
hash += 0x7fffffff;
MessageBox.Show(hash.ToString());是不是这样写啊,感觉好像还不太可以啊