开发者

How to word question to indicate default answer in console application?

How to word question 开发者_JAVA技巧to indicate default answer in console application?

  • Coca-Cola size [] Medium [S] Small [L] Large
  • Coca-Cola size [Enter] Medium [S] Small [L] Large
  • Coca-Cola size [Medium] [S] Small [L] Large

Other suggestions?


I like the way certain Linux stuff does it:

Allow non-root access (Y/N) [default=N]: _

For your specific use case, you could do:

Coca-Cola size (M)edium, (S)mall or (L)arge [default=M]: _
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜