首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

问个delphi输出有关问题

2012-02-21 
问个delphi输出问题程序最后输出一个S,Writeln(S,S);为啥不直接写writeln(s)Writeln(C,…,d);是啥意思

问个delphi输出问题
程序最后输出一个S,Writeln('S=',S); 为啥不直接写writeln(s)
Writeln(C,'…',d);是啥意思
输出输出等式 N3=X2—Y2 或N*N*N=X*X—Y*Y为啥要写成Writeln(N,'*',N,'*', N,'=', X,'*', X,'—',Y,'*',Y);  
 

[解决办法]
下面是delphi帮助中的解释,自己看看吧

Delphi syntax:

procedure WriteLn([ var F: Text; ] P1 [, P2, ...,Pn ] );

Description

WriteLn is an extension to the Write procedure, as it is defined for text files. 

After executing Write, WriteLn writes an end-of-line marker (line feed or carriage return/line feed) to the file. 

If F is omitted, the global variable Output is used, which accesses the processes standard input file. Use of Output in GUI applications raises special issues.
[解决办法]

探讨
程序最后输出一个S,Writeln('S=',S); 为啥不直接写writeln(s)
Writeln(C,'…',d);是啥意思
输出输出等式 N3=X2—Y2 或N*N*N=X*X—Y*Y为啥要写成Writeln(N,'*',N,'*', N,'=', X,'*', X,'—',Y,'*',Y);

热点排行