InputOutputinC++在C++的输入输出.pptxVIP

  • 0
  • 0
  • 约2.52千字
  • 约 38页
  • 2021-10-08 发布于河南
  • 举报
Input/Output in C++;Outline;Using iostream.h;The Insertion Operator (?) ? To send output to the screen we use the insertion operator on the object cout ? Format: cout Expression; ? The compiler figures out the type of the object and prints it out appropriately cout 5; // Outputs 5 — cout ? 4.1; // Outputs 4.1 W W I I I cout ? String”; // Outputs String cout ? \nr; // Outputs a newline;The Extraction Operator (?);Chaining Calls;Setting Format Flags;Setting Format Flags (cont);Integer Base and Format Flags;Integer Base and Format Flags (cont);Integer Base Example;Showing the Base :

文档评论(0)

1亿VIP精品文档

相关文档