Help with C++ linker error -
I am struggling with a linker error which I can not understand, I am implementing the Bell Ford Algorithm I'm part of my homework.
Even I have a code written so far, it would be good if someone can explain to me why I am getting this error, I have stuck my code on Mozilla Pastebin, two files Graph is H: and Belman_fird.cpp:
All the solutions will be appreciated and thank you for taking the time to help me out for your valuable time.
you Apply them as: If you include vertex :: vertex () or
edge :: Edge () - They have just been announced.
class Vertex {private: char vertex_name; Public: Vertex () {} ... Class Edge {Private: Vertex Source, Destination; Visceral weight; Public: Edge () {} ...
graph.h with more than one CPP file, you will also get errors . You should move the bodies of your member works into a
graph.cpp file instead of moving them to the header.
Comments
Post a Comment