http://www.cplusplus.com/reference/cstdio/printf/
format : %[flags][width][.precision][length]specifier
width : * The width is not specified in the format string, but as an additional integer value argument preceding the argument that has to be formatted.
라고 합니다!
근데 이 방법으로 풀 수 있나요?
qhrrkfl2 8년 전
별을찍을때 오른쪽 정렬을 하려면 어떤 서식을 사용해야하죠?
%5d 와같이 숫자를 앞에쓰면 5칸을 할당받고 오른쪽 정렬을 하는데
만약 별을 n개 만큼 찍을시에는 n칸을 할당받아야 하는데 어떻해 해야하는것인가요
궁금해요 ㅠㅠ