声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2690|回复: 0

[Fortran] *Vwrite 中C 格式符

[复制链接]
发表于 2005-9-2 15:43 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
Enhanced C descriptors available in ANSYS include the following:<BR>
<TABLE  cellSpacing=0 cellPadding=0 border=0>
<TFOOT>
<TR vAlign=top>
<TD noWrap>%wI</TD>
<TD>w is the column width. Integer is preceded by the number of blank characters needed to fill the column.</TD></TR>
<TR vAlign=top>
<TD noWrap>%0wI</TD>
<TD>Same as above except integer is padded by zeroes instead of spaces.</TD></TR>
<TR vAlign=top>
<TD noWrap>%0w.pI</TD>
<TD>Pad integer with zeros as necessary to obtain a minimum of p digits.</TD></TR>
<TR vAlign=top>
<TD noWrap>%w.pF</TD>
<TD>w is the column width. Floating point format to p decimal places.</TD></TR>
<TR vAlign=top>
<TD noWrap>%w.pG</TD>
<TD>General format with p significant digits.</TD></TR>
<TR vAlign=top>
<TD noWrap>%w.pE</TD>
<TD>Scientific notation to p decimal places.</TD></TR>
<TR vAlign=top>
<TD noWrap>%wC,<BR>%wS</TD>
<TD>Character string with column width of w.</TD></TR>
<TR vAlign=top>
<TD noWrap>%-wC,<BR>%-wS</TD>
<TD>Left justify character string (right justify is default).</TD></TR>
<TR vAlign=top>
<TD noWrap>%wX</TD>
<TD>Include w blank characters.</TD></TR></TFOOT>
</TABLE>
回复
分享到:

使用道具 举报

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-12 22:19 , Processed in 0.131662 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表