📜  如何输出到控制台 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:55.964000             🧑  作者: Mango

代码示例2
/*there are 2 ways of doing it.*/
#include  // including the main thing needed
int main(){
  std::cout << "Text here.";
  //you could put using namespace std; so you just have to do
  cout << "Text Here.";
  //this isnt reccomended though.
  printf("hi");
  //is also an option.
  return 0;
}