以下代码如何转换为C#代码???
string ls_pass,as_pwd
ls_pass = ls_pass + char(255 - asc(mid(as_pass,i,1)))
string ls_pass,as_pwd
ls_pass = ls_pass + char(255 - asc(mid(as_pass,i,1)))
解决方案 »
- Inno steup 打包C# netForwork框架问题 急
- .Net中的特性(Attribute)有什么用?
- 请问函数前的 [Serializable] 和[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] 这类语法表示什么有什么
- listbox的问题
- 高分求救几个怪问题 问题一解决 马上结贴 请大虾们帮帮忙
- 怎么使用工商银行提供的网银接口
- 如何实现命令行程序中等待异步事件?
- WPF 文本框TextBox中输入限定输入格式(数字(1到64)-数字(1到64)),求正则表达式!
- 一个数据传替的问题
- 使用Dns.GetHostByAddress出现的问题!
- 请教:datagrid 双击事件问题(不使用TextBox.DoubleClick)
- 求.net 2.0 FTP客户端源代码
string as_pwd = "";
ls_pass = ls_pass + char(255 - Int32.Pare(asc(mid(as_pass,i,1)).ToString())).ToString();
string as_pwd="abc";
int k=Convert.ToChar(as_pwd.Substring(2,1));
ls_pass=ls_pass+ Convert.ToChar(255-k);Convert是C#自带的,直接调用就行了!
int i=1;
ls_pass+=Convert.ToChar(255-((int)Convert.ToChar(as_pwd.Substring(i,1)))).ToString();
this.Text=ls_pass;
ls_pass = ls_pass + (char)(255-(int)Convert.ToChar(as_pwd.Substring(2,1)));
int k=Convert.ToChar(as_pwd.Substring(0,1));
MessageBox.Show(k.ToString());我刚试过了,报出的结果是97,你去查一下a字母的ASC码是不是97咯!
给你代码你都试不出来,既然这样那恐怕没人能帮你了!
int i=1;
ls_pass+=Convert.ToChar(255-((int)Convert.ToChar(as_pwd.Substring(i,1)))).ToString();
this.Text=ls_pass;
晕倒ToString()加了已经变成string了怎么不能进行相加????
http://community.csdn.net/Expert/topic/4456/4456880.xml?temp=.9585993