There are three calls to member functions of ostream object cout that set the format of stream output so that the format of the output is in fixed point, a decimal point always shows, and there are two places of decimals after the decimal point. Give these statements along with the necessary #include and using statements.
What will be an ideal response?
```
#include
using std::ios;
//. . .
cout.setf(ios::fixed); //fixed format output
cout.setf(ios::showpoint);//display decimal point
cout.precision(2); //display 2 places of decimals
```
Computer Science & Information Technology
You might also like to view...
Which of the following allows the deployment of a publicly accessible web server without compromising the security of the private network?
a. Switch b. Intranet c. Extranet d. DMZ
Computer Science & Information Technology
If you type a __________ name and press enter, MS-DOS will execute the commands in sequence.
a. program b. macro c. batch file d. none of the above
Computer Science & Information Technology