
31 Jan
2008
31 Jan
'08
1:01 p.m.
Aaron Windsor wrote:
Hi Renato,
The sequence of statements:
Edge e; e = graph[pred]; e.count++;
copies the Edge structure from graph[pred] to e by value, then makes a modification to the copy in e, which is then thrown away when e goes out of scope. Instead, try:
graph[pred].count++;
Oh my, that obviously worked! Thanks! It's the kind of silly things that you need someone else to show you... ;) Thank you! --renato