C++学习第一篇_打印hello world的3中方式

  1 #include 
  2 
  3 //using namespace std; 第一种
  4 
  5 #if 0
  6 using std::cout;
  7 using std::endl;
  8 #endif
  9 
 10 int main()
 11 {
 12     //cout<<"hello world"<
 13 
 14     //std::cout<<"hello world"<
 15     
 16     cout<<"hello_world"<17     return 0;
 18 }

你可能感兴趣的:(C++学习第一篇_打印hello world的3中方式)