简单的C++头文件问题~
cout<<setw(8)<<left<<a这里面left的头文件是什么?
C:\Documents and Settings\小黄黄黄黄黄\桌面\C++程序题\ex4.cpp(9) : error C2065: 'left' : undeclared identifier
上面是编译提示的错误~
目的是让输出的数据靠左整齐~
2013-01-18 11:32
2013-01-18 11:59
2013-01-18 15:32
2013-01-18 22:16
2013-01-18 22:17
2013-01-18 22:17
2013-01-18 22:18
程序代码:#include<iostream>
#include<iomanip>
using namespace std;
void main()
{
int a=1,b=1,c;
cout<<setw(8)<<left<<a
<<setw(8)<<left<<b;
for(int i=1;i<=38;i++)
{
c=a+b;
a=b;
b=c;
cout<<setw(8)<<left<<c;
}

2013-01-19 03:48
2013-01-19 20:16