C++ Struct Edge: Accessing the 'weight' Property
To access the value of "weight" in the "Edge" struct, you can modify the statement as follows: \n\n\ncloud1->points[edge.weight]\n\n\nto\n\n\ncloud1->points[edge.weight]\n\n\nThis change ensures that you are accessing the "weight" value of the "Edge" struct instead of a specific instance of the struct.
原文地址: https://www.cveoy.top/t/topic/qy2D 著作权归作者所有。请勿转载和采集!