C++输入输出流对象:

1.输入输出流对象  类-----类类型

  整型  变量名

   int      age;

  字符串 对象名   对象的本质(变量 和数据)

  string name;

  ostream cout;    //运算符是一种特殊的函数

  cout<<12<<endl;

  cout.operator<<(12).operator<<endl;

  endl 和 “\n”的区别:

     endl可以换行并刷新缓存

 

相关文章:

  • 2021-11-18
  • 2021-12-08
  • 2021-09-29
  • 2021-09-07
  • 2022-12-23
猜你喜欢
  • 2021-09-06
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
  • 2021-12-28
  • 2021-12-30
  • 2021-08-09
相关资源
相似解决方案