c++の学習中での分からない事につての質問です。
cout.setf が正常に働きません。
[2]
[2.1]
OS: Windows
[2.2]
コンパイラ名: VC++2008EE
[3]
#include <iostream>
using namespace std;
int main()
{
int a = 8;
cout << " a = " << a << endl;
cout.setf(ios::oct);
cout << " 8進数 a = " << a << endl;
cout.unsetf(ios::oct);
}
どなたか、理由を知っている方があれば、是非ご教授下さい。
C++初心者です。