ezeke 发表于 2015-12-31 14:50:40

测试-使用MarsEdit作为Mac OS X的博客园客户端

  测试
  
  #include <iostream>
  #include <functional>
  #include <memory>
  using namespace std;
  
  class Test
  {
  public:
  Test()
  {
  cout << "Test " << endl;
  }
  
  ~Test()
  {
  cout << "~Test" << endl;
  }
  private:
  int value_;
  };
  
  
  int main(int argc, const char * argv[])
  {
  
      // insert code here...
      std::cout << "Hello, World!\n";
  std::shared_ptr<Test> ptr(new Test);
  
  
  return 0;
  }
页: [1]
查看完整版本: 测试-使用MarsEdit作为Mac OS X的博客园客户端