Wizard of Orz
There are $n$ digital panels placed in a straight line. Each panel can show any digit from $0$ to $9$. Initially, all panels show $0$.
There are $n$ digital panels placed in a straight line. Each panel can show any digit from $0$ to $9$. Initially, all panels show $0$.
扫描集为一个字符集合,用来匹配期待输入的字符。对于scanf匹配输入内容时,可以使用扫描集灵活地进行字符串截取输入。
扫描集以 %
开头,用 []
包含字符集。如扫描集 %[abc]
, %[a-z]
, %[^abc]
, %[^a-z]
,其中 ^
表示求反集。
在阅读文章前,请先思考下面的代码执行结果是什么:
1 |
|