c选择与循环.pptVIP

  • 9
  • 0
  • 约1.88万字
  • 约 103页
  • 2017-06-14 发布于北京
  • 举报
3.4.2Manipulators(流操纵符) Manipulator endl was used to modify input and output data streams. The mainpulator endl was used in previous programs to skip to the start of a new line on the screen. (流操纵符用于对输入和输出数据流进行修改。如endl它的作用是将光标移到一个新行的起始位置。) A manipulator can appear anywhere in a series of insertion or extraction opperations.(流操纵符可以出现在一个连续的流插入和流提取运算符中的任何位置。如下:) cout endl endl endl can be used anywhere endl; Manipulators(流操纵符) setw is used to set the width of a data field.用于设置数据域的宽度,指的是数据项在屏幕上所点的列数。 int num1=123; coutsetw(4)num1; setfill is used to change the “pad

文档评论(0)

1亿VIP精品文档

相关文档