Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想为类使用一个特定的内存块,以便对于一个对象,它的成员变量是从同一个块分配的内存。如果对象超出范围,则内存块再次可供重用。
你有两个选择:
new