막 성적표
국어 영어 수학 평균 이름
점수 점수 점수 점수 이르음
이런식으로 칸 맞춰서 할수있게 출력하는방법 없을까효??
콘솔에 줄맞춤 기능같은건 없으니 글자수 체크해서 하드코딩을 하거나 '\t' 을 잘 쓰거나 해보셈. '\n' 이 줄바꾸는 것처럼 '\t'는 탭키 눌러주는거임
'₩t' 인데 짤리는군... 역슬래시t 말하는거임
<iomanip>
This means Input Output Manipulator.
You can use std::setw from that.
e.g. std::cout << std::setw(15) << "Some string" << std::endl;
This code will generate " Some string" of which the size is 15.
Thanks!
콘솔에 줄맞춤 기능같은건 없으니 글자수 체크해서 하드코딩을 하거나 '\t' 을 잘 쓰거나 해보셈. '\n' 이 줄바꾸는 것처럼 '\t'는 탭키 눌러주는거임
'₩t' 인데 짤리는군... 역슬래시t 말하는거임
<iomanip>
This means Input Output Manipulator.
You can use std::setw from that.
e.g. std::cout << std::setw(15) << "Some string" << std::endl;
This code will generate " Some string" of which the size is 15.
Thanks!