showTitle("https://tistory1.daumcdn.net/tistory/520789/skin/images/", "viewTitle.swf", 600, 30, "C++을 하면서 자주 쓰는 구문들..", "/entry/C%EC%9D%84-%ED%95%98%EB%A9%B4%EC%84%9C-%EC%9E%90%EC%A3%BC-%EC%93%B0%EB%8A%94-%EA%B5%AC%EB%AC%B8%EB%93%A4", "left", "#000000");
2010. 11. 29. 09:46
Programming/C++
1. 출력을 하다보면 모양새 좋게.. 혹은 원하는 포맷으로 출력하고 싶을 때가 있다.
setiosflags
먼저 - http://www.cplusplus.com/reference/iostream/manipulators/setiosflags/
를 참고 하자.
위 링크에 아래쪽을 보면
구문들이 있다.
이들도 보는 참고하는 것이 좋겠다.
cout.flags ( ios::left );
setiosflags
먼저 - http://www.cplusplus.com/reference/iostream/manipulators/setiosflags/를 참고 하자.
위 링크에 아래쪽을 보면
See also
resetiosflags | Reset format flags (manipulator function) |
ios_base::setf | Set specific format flags (public member function) |
ios_base::flags | Get/set format flags (public member function) |
구문들이 있다.
이들도 보는 참고하는 것이 좋겠다.
cout.flags ( ios::left );
'Programming > C++' 카테고리의 다른 글
seekg(0, ios::beg) doesn't work! (0) | 2010.11.28 |
---|---|
#define, #ifdef, #ifndef, #endif (0) | 2010.03.28 |
Header에서 #pragma once Vs #ifndef (0) | 2010.03.28 |
#pragma once (why it is always attached when we making new class file in visual studio? (0) | 2010.03.28 |
union(공용체)와 BitField (0) | 2010.03.14 |