输入一串字符时比如printf("%.ms","*******"),可以只出现m个*,那么m可以是变量吗?如果可以该怎样编代码?新人求教
char ch[100]; sprintf(ch, "%%.%ds", 次数); //得到一个 %.次数s printf(ch, 你的参数);