2016年3月21日

printf用法---printf输出固定长度的字符

摘要: 需要打印一个固定长度的字符 一般可以这么做: 但是用一行代码也可以搞定: printf("%.*s\n", str_len, str); printf一般用法: ref : http://www.cnblogs.com/yuaqua/archive/2011/10/21/2219856.html 小 阅读全文

posted @ 2016-03-21 10:07 _linux 阅读(30737) 评论(1) 推荐(2) 编辑

导航