c++ Help with kruskal

05/26/2013 12:44 Hikarim#1
___
05/26/2013 12:52 Hiris#2
i do not understand the language of your variables, so its hard to help, did you check for circles? You have to make sure that no circles are built in the graph, one way to do this would be creating groups and adding used groups which work together in a group, if groups have collisions, you can detect circles
05/26/2013 13:08 Hikarim#3
OK, tryed to translate as much code as i could to make it more "english-firendly" (edited main post)
05/26/2013 14:16 Delinquenz#4
In your main function you are opening a switch and end it with } while (...); You can do it on a do-while-loop but not on a switch-condition.

It doesn't work - what does not working? Please try to describe your problem better so that we can try to follow you without testing in our compiler. Does the compiler throw any errors?
05/26/2013 14:27 Hikarim#5
it is a do- while statement, the switch is in the do{} statement, lol.

And, about my problem, well, when i use the 3rd option in my menu (kruskal), the program doesnt end the process and gives me the results, instead it is working on something into infinty... so thats ym problem.
05/26/2013 14:30 Hiris#6
use debuger of visual studios with this red point thing that u can set and go step by step, check where it goes infinit und change it
05/26/2013 14:43 Hikarim#7
not using visual studio, i am using DevC++, but anyway,... I was checking the sudo code, but it seems i've done everything correct, but it still bugs :(
05/26/2013 15:51 マルコ#8
Deleting your post and code and everything is the most useful thing to do when asking for help!