编译出问题
#include <iostream.h>#include <stdio.h>
#include <string.h>
#include <iomanip.h>
void main()
{
double amount = 22.0/7;
cout <<amount <<endl;
cout <<setdivcision(2) <<amount <<endl;
}
-------------------Configuration: 例16-16-03 - Win32 Debug--------------------
Compiling...
例16-16-03.cpp
C:\c009\例16-16-03.cpp(11) : error C2065: 'setdivcision' : undeclared identifier
Error executing cl.exe.
例16-16-03.exe - 1 error(s), 0 warning(s)
编译时出错!问题在哪?