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.
我正在使用链表,我想知道链表防止内存泄漏的好的析构函数是什么。因为每次遍历列表时,我都会创建一个节点指针来打印、追加、查找、删除、插入。
一种方法是创建一个节点并将其用于所有发现。您将其设置为 root 并使用它遍历列表。
我已经rspec2安装了spork,guard当运行guard命令时,我得到这个错误:
rspec2
spork
guard
undefined method `generators' for #<RSpec::Core::Configuration:0x007fb39