#ifndef Shared_ptr_Hpp #define Shared_ptr_Hpp #include <stdio.h> #include <iostream> using namespace std; template <typename T> class Shared_ptr { private: size_t* m_count; T* m_ptr; public: //构造函数 Shared_ptr() : m_ptr(nullptr), m_count(new size_t) {} S...