简单的C++头文件问题~
cout<<setw(8)<<left<<a这里面left的头文件是什么?
C:\Documents and Settings\小黄黄黄黄黄\桌面\C++程序题\ex4.cpp(9) : error C2065: 'left' : undeclared identifier
上面是编译提示的错误~
目的是让输出的数据靠左整齐~
#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; }