<s>关于_p scanf_nx 函数_n %_w c_nx 之前_f 与_c 之后_f 使用_v 空格_n 的_u 问题_n</s>
<s>你_r 看_v c_nx 标准_n 里_f 对_p scanf_nx format_nx 的_u 说明_vn Whitespace_nx character_nx :_w the_nx function_nx will_nx read_nx and_c ignore_nx any_r whitespace_nx characters_nx encountered_nx before_e the_r next_nx non_nx -_w whitespace_nx character_nx (_w whitespace_nx characters_nx include_nx spaces_nx ,_w newline_nx and_c tab_nx characters_nx -_w -_w see_v isspace_nx )_w ._w</s><s>A_nx single_nx whitespace_nx in_w the_r format_nx string_nx validates_nx any_r quantity_a of_u whitespace_nx characters_nx extracted_a from_v the_r stream_nx (_w including_a none_nx )_w ._w</s><s>如果_c 你_r 是_v "_w %_w c_nx "_w ,_w 读完_v 所有_b 的_u 字符_n 后_f ，_w 还_d 需要_v 匹配_v 一_m 个_q "_w "_w ,_w 你_r 输入_v 任何_r 空白_n 字符_n 或_c 非_h 空白_n 字符_n 都_d 可以_v 完成_v 匹配_v ._w</s><s>但_c 必须_d 有_v 这么_r 一_m 个_q 字符_n 。_w</s><s>如果_c 是_v "_w %_w c_nx "_w ,_w 第一_m 个_q "_w "_w 在_p 碰到_v 你_r 输入_v 的_u a_nx 时_Ng 就_d 完成_v 匹配_v 了_y 。_w</s><s>(_w 参见_v 标准_n 中_f 最后_f 那个_r including_nx none_nx )_w</s>
