Posts by rbl • 21 points
3 posts
-
0
votes1
answer161
views -
1
votes2
answers75
viewsQ: How do I define Operator= for a c++ struct?
I have the structure to follow: struct PATH { vector<ARCO_TEMPO> rota; set<int> rotaAux; float COST; int nArcosVoyage; vector<bool> VisitedNodes; vector<vector<bool>>…
-
0
votes1
answer192
viewsQ: How to use map / create keys to store c/c++ cycles?
What is the most efficient c/c++ structure that I can use to create and store cycles, so that I can ensure that repeated cycles are not stored? I have a CICLO struct, such that: struct CICLO {…