将任意输入的英文单词翻译成密码文,规则是:把所有字母用它后面的第3个字母代替,假设Z的后面是A,z的后面是a,如Zero翻译成Chur
if(this.openFileDialog1.ShowDialog() == DialogResult.OK)
{
string path = this.openFileDialog1.FileName;
FileInfo f = new FileInfo(path);
MyPlayer.AddFile(f.FullName);
string STRFILE = Convert.ToString(MyPlayer.NumOfMusic);
for(int i = 1;i<=5-STRFILE.Length;i )STRFILE =’ ’;
STRFILE = f.Name;
this.listBox1.Items.Add(STRFILE);
}
{
string path = this.openFileDialog1.FileName;
FileInfo f = new FileInfo(path);
MyPlayer.AddFile(f.FullName);
string STRFILE = Convert.ToString(MyPlayer.NumOfMusic);
for(int i = 1;i<=5-STRFILE.Length;i )STRFILE =’ ’;
STRFILE = f.Name;
this.listBox1.Items.Add(STRFILE);
}
温馨提示:答案为网友推荐,仅供参考