I\'ve read a few posts on here about static functions, but still am running into trouble with implementation.
I\'m writing a hardcoded example of Dijkstra\'s algorit
You can just use a namespace instead of having a class with all static members.
Alg.h:
namespace Alg { void dijkstra(); }
and in Alg.cpp
namespace Alg { void dijkstra() { // ... your code } }
in main.cpp
#include "Alg.h" int argc, char **argv) { Alg::dijkstra(); return 1; }