特定数据类型的字段宽度,比如用四位数字表示年份。
Field widths for specific data types, such as four digits for a year.
一个“字段宽度”(比如“ %10s ”)仅指定了最小长度 ――而不是最大长度。
A "field width" (such as "%10s") only specifies the minimum length -- not the maximum length.
“字段宽度”指定符会留下缓冲区溢出隐患,而字段宽度和精确宽度指定符看起来几乎完全相同——唯一的区别在于安全的版本具有一个点号。
The "field width" specifier allows buffer overflows, and the field width and the precision width specifiers look almost identical — the only difference is that the safe version has a period.
如果显示的字段的宽度小于80个字符,会按表格格式显示结果。
If the width of the fields to be displayed is less than 80 characters wide, the results are displayed in a table format.
如果显示的字段的宽度大于80个字符,每个记录的结果按表中的字段定义跨多行显示。
If the width of the fields to be displayed is greater than 80 characters wide, the results for each record is displayed over multiple lines, as defined by the fields in the table.
随后将运算符本身(submatch(2))右对齐(使用 %*s)到第二个字段,其字符宽度为 max_op_width。
It will then right-justify (using a %*s) the operator itself (submatch(2)) into a second field that's max_op_width characters wide.
width表示字段的字符宽度;文本将会被截断或者填补,以适应这一宽度。
Width represents the width of a field in characters; the text will be truncated or padded up to the width.
请问如何控制GRID的字段显示宽度。
你想存取字符串的一部分。何如,你读取了一条固定宽度的记录,然后从中提取出其中的字段。
You want to access portions of a string. For example, you've read a fixed-width record and want to extract the record's fields.
你想存取字符串的一部分。何如,你读取了一条固定宽度的记录,然后从中提取出其中的字段。
You want to access portions of a string. For example, you've read a fixed-width record and want to extract the record's fields.
应用推荐