char c;
int i;
....
i = (int)c; //unicode value
c = (char)i; //convert unicode value to char
int i;
....
i = (int)c; //unicode value
c = (char)i; //convert unicode value to char
解决方案 »
- 散分,新鲜出炉的WPF俄罗斯方块
- 网页上使用ymPrompt组件后,弹出的对话框在webbrowser如何自动处理
- 使用HttpWebRequest向aspx表单Post数据时,因VIEWSTATE过长,导致401错误
- 提个老问题。锁定滚动条自动的GridView的表头及首几列的问题
- sql select case 问题
- 简单问题,帮忙写个函数!
- 阿里巴巴网页信息采集问题,拜求各位大侠
- 咱们这里怎么没有人用c#开发基于Exchang的东西?
- 每次用.net帮助的索引就会出错退出
- 火烧眉毛了,大家救我!!!!!
- 怎样使用asp.net作为客户端远程调用com+!!!能给小弟发一个例子最好!!![email protected]
- axMediaPlayer控件怎么用
int i=(int)t; //i=20013,
我要得到-10544?
anyway, here is the implementation:
short Asc( string str ){
byte[] chs = System.Text.Encoding.Default.Getbytes( str );
return (short)( (chs[0] << 8) + chs[1] );
}