I could use help getting the code here to run http://blog.csdn.net/honpey/article/details/8795228 directly underneath the three typdef structs and the and the graph picture... Im trying to run it to learn about CvGraph struct and related functions. when i run it i get error:
error: ‘Edges_addr’ was not declared in this scope cvGraphAddEdge(graph,edge_start[i],edge_end[i],&Edges[i],&Edges_addr[i]);
I dont want to edit it myself because i wouldnt know how to edit but still preserve the authors intention ....so i could use help just declaring edges_addr correctly and understanding what the new operator is doing on this line(line 22)
CvGraphEdge *Edges = new CvGraphEdge[EdgeNum];
I know CvGraphEdge is a struct so is it essentially doing this :
(CvGraphEdge)malloc(sizeof(CvGraphEdge*EdgeNum)) ?
any help on this is greatly valued=)
Cheers!
ps need to use C for a project is why =)