Static Functions in C++

前端 未结 8 1329
野趣味
野趣味 2021-01-17 08:09

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

8条回答
  •  误落风尘
    2021-01-17 08:53

    Now that we have the complete declaration of your class Arg, it feels like the singleton design pattern could be useful:

    http://en.wikipedia.org/wiki/Singleton_pattern

提交回复
热议问题