标题:这题怎么算呢?
只看楼主
xiaodongfeng
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-7-22
 问题点数:0 回复次数:0 
这题怎么算呢?
set talk off
clear
accept"请任意输入一串字符:"to p
l=len(p)
c=""
fori=1tol
   A=substr(p,i,1)
   do case
 case asc(A)>=asc("a") and asc(A)<=asc("u") or  asc(A)>=asc("a") and asc(A)<=asc("U")
    a=chr(asc(a)+5)
case asc(A)>=asc("v") and asc(A)<=asc("z") or asc(A)>=asc("V") and asc (A)<=asc("Z")
A=chr(asc(a)-21)
endfor
?P+""+c
set talk on
那个朋友解释下。谢谢了
搜索更多相关主题的帖子: asc case talk set fori 
2008-08-05 14:13



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-226892-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.303149 second(s), 10 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved