I have been looking for Prim Algorithm on daniweb.com website and I found multiple threads dead but still unsolved. Few people needs expalination of Prim Algorithm and others need its working code. Well, to help everyout out, here is a link to working Prim's Algorithm code which is easier to understand.
http://in.docsity.com/en-docs/Prim_Algorithm_-_C_plus_plus_Code