对文字加密的时候出错,帮我看看,或者哪位大侠帮我调试下,我发程序过去。。
protected
function getsourcecode:string;
function changesourcetodesign(source:string):string;
function secretchar(sc:char):char;function tregcode.secretchar(sc: Char):char;
var
itmep:integer;
begin
itemp:=ord(sc);
case itemp of
48..57;
begin
itemp:=itemp +see[itemp];
if itemp>57 then
itemp:=itemp-10; end;
65..90;
begin
itemp:=itemp+see[itemp] ;
if itemp>90 then
itemp:=itemp-26;
end;
97..122;
begin
itemp:=itemp+see[itemp] ;
if itemp>122 then
itemp:=itemp-26;
end;
result:=char(itemp);
end;
end;
protected
function getsourcecode:string;
function changesourcetodesign(source:string):string;
function secretchar(sc:char):char;function tregcode.secretchar(sc: Char):char;
var
itmep:integer;
begin
itemp:=ord(sc);
case itemp of
48..57;
begin
itemp:=itemp +see[itemp];
if itemp>57 then
itemp:=itemp-10; end;
65..90;
begin
itemp:=itemp+see[itemp] ;
if itemp>90 then
itemp:=itemp-26;
end;
97..122;
begin
itemp:=itemp+see[itemp] ;
if itemp>122 then
itemp:=itemp-26;
end;
result:=char(itemp);
end;
end;
解决方案 »
- 关于写一个像wpe那样监视网络的软件的问题!
- 如何调用按钮触发的事件?
- 打开delphi后,一运行就出错!!!
- 如何实现ie的“另存为”
- 关于image的问题具体请进来看一下。谢谢了
- 关于 FILTER='时间>='''+qstart+''' and 时间<='''+q_end+'''' 的写法的问题
- ★★★一个值得研究的看似简单的古怪问题!只有几行代码,大家猜猜结果是什么?
- 关于连接本地数据库的菜鸟问题........送分
- 用mediaplayer播放mid时程序会卡一会儿,怎么办?
- 哪位高手有自定义报表程序?outlook的竖工工具条控件?
- StringGrid怎样合并单元格,不用插件!
- Delphi中的流有什么作用?和字符串有什么区别?
begin
itemp:=ord(sc);写反了一个字母,现在时别处的问题,