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 vertex :: vertex () or edge :: Edge () - They have just been announced.

Apply them as:

  class Vertex {private: char vertex_name; Public: Vertex () {} ... Class Edge {Private: Vertex Source, Destination; Visceral weight; Public: Edge () {} ...   

If you include 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

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -