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.
我实际上正在研究图形表示,这就是我们如何表示具有多个节点和边的图形?
您可以通过指向指向第二个元素的第一个元素来构建列表指针,依此类推。好吧,如果我理解你的问题。在面向对象中,您创建一个包含您想要的任何内容的类和一个包含同一类的实例的方法“getNext()”,如果它是最后一个元素,则为 null。在 C 中,您可以创建一个“结构”