internal(표준 C++ 라이브러리)
Causes a number's sign to be left justified and the number to be right justified.
ios_base& internal(
ios_base& _Str
);
매개 변수
- _Str
A reference to an object of type ios_base, or to a type that inherits from ios_base.
반환 값
A reference to the object from which _Str is derived.
설명
showpos causes the sign to display for positive numbers.
The manipulator effectively calls _Str.setf(ios_base::internal, ios_base::adjustfield), and then returns _Str.
예제
// ios_internal.cpp
// compile with: /EHsc
#include <iostream>
#include <iomanip>
int main( void )
{
using namespace std;
float i = -123.456F;
cout.fill( '.' );
cout << setw( 10 ) << i << endl;
cout << setw( 10 ) << internal << i << endl;
}
요구 사항
Header: <ios>
네임스페이스: std