求翻译。。。跪求大神 新人求教
c++吧
全部回复
仅看楼主
level 1
czhn千年虫 楼主
一楼度娘 不要吞
2012年07月30日 03点07分 1
level 1
czhn千年虫 楼主
program keys;
type
int=0..9; var
le:string;
a,b,l:integer;
ke:string;
ke2:array[1..50]of int;
t,m:text;
function kmod(k,l:integer):integer; begin
while k>l do
begin
k:=k - l;
end;
end; begin assign(t,'信件.txt');
assign(m,'密信.txt');
write('请输入密钥,共若干位,一位数,一次输入'); readln(ke);
for a:=1 to length(ke) do
begin
val(ke[a], ke2[a],b);
end;
{Read the keys.}
b:=0; reset(t);
readln(t,le);
l:=length(le);
{Read the letter.} for a:=1 to l do
begin
for b:=1 to ke2[ kmod(a,length(ke))] do
begin
le[a]:=succ(le[a]);
end;
end;
{Change the letter.} rewrite(m);
write(m,le);
{Write the letter.} close(t);
close(m);
readln;
end.
2012年07月30日 03点07分 2
level 1
czhn千年虫 楼主
小弟的一个程序 现在转c++了 求翻译成c++[摊手]
2012年07月30日 03点07分 3
level 1
czhn千年虫 楼主
自顶 不能沉啊不能沉
2012年07月30日 03点07分 4
level 1
czhn千年虫 楼主
不要沉啊 芝麻来人!!!!召唤大神啊!!!!!芝麻来人
[啊!][揉脸][揉脸][揉脸][揉脸][揉脸][揉脸][揉脸][揉脸][揉脸]
2012年07月30日 03点07分 5
level 10
想问
lz
是不懂pascal类语法还是不懂c++类语法
2012年07月30日 03点07分 6
level 1
czhn千年虫 楼主
只是求翻译啊 不管怎样 只是翻译
2012年07月30日 03点07分 7
level 12
[打酱油] 不懂pascal
2012年07月30日 03点07分 8
level 1
czhn千年虫 楼主
芝麻来人 召唤cp通吃的大神!!!!!
2012年07月30日 03点07分 9
level 1
czhn千年虫 楼主
芝麻来人 召唤cp通吃的大神!!!!!
2012年07月30日 03点07分 10
level 1
czhn千年虫 楼主
芝麻来人 召唤cp通吃的大神!!!!!
2012年07月30日 03点07分 11
1