主题:跪求高手指点
#include<iostream.h>
#include<iomanip>
void main(void)
{
int i=12,j=100;
float x=0.618f;
cout<<i<<j<<x<<endl;
cout<<i<<','<<j<<','<<x<<endl;
cout<<setw(6)<<i<<setw(6)<<j<<setw(10)<<x<<endl;
}
以上的程序哪儿出错了,我一运行就出现
--------------------Configuration: setw - Win32 Debug--------------------
Compiling...
setw.cpp
D:\c++\未解决\setw.cpp(9) : error C2065: 'setw' : undeclared identifier
Error executing cl.exe.
setw.obj - 1 error(s), 0 warning(s)
#include<iomanip>
void main(void)
{
int i=12,j=100;
float x=0.618f;
cout<<i<<j<<x<<endl;
cout<<i<<','<<j<<','<<x<<endl;
cout<<setw(6)<<i<<setw(6)<<j<<setw(10)<<x<<endl;
}
以上的程序哪儿出错了,我一运行就出现
--------------------Configuration: setw - Win32 Debug--------------------
Compiling...
setw.cpp
D:\c++\未解决\setw.cpp(9) : error C2065: 'setw' : undeclared identifier
Error executing cl.exe.
setw.obj - 1 error(s), 0 warning(s)