Header file

Which header file must be included to use the manipulators fixed and showpoint? (7)

What is the purpose of the manipulator setw? Which header file must be included to use the function setw? (7)

What is the output of the following program? (2, 3, 6, 8)

#include

#include

#include

#include

using namespace std;

int main()

double x, y;   

string str;   

x = 9.0;   

y = 3.2;   

cout < fixed=””>< showpoint=””>< setprecision(2);   =””>

cout < x=””>< “^”=””>< y=””>

cout

cout

cout << “>(sqrt(pow(y, 4))) = ” <>(sqrt(pow(y, 4))) < endl;   =””>

str = “Predefined functions simplify programming code!”;   

cout

return 0;

“length=”” of=”” str=””>

return 0;

}

>

Posted in Uncategorized

Leave a Reply