diff --git a/Projekt/include/types.hpp b/Projekt/include/types.hpp index e69de29..5f49c74 100644 --- a/Projekt/include/types.hpp +++ b/Projekt/include/types.hpp @@ -0,0 +1,2 @@ +using namespace std; +typedef std::map> mapa; diff --git a/Projekt/main.cpp b/Projekt/main.cpp index b6cb122..118c342 100644 --- a/Projekt/main.cpp +++ b/Projekt/main.cpp @@ -62,11 +62,14 @@ void czyscStringa( string &str, char* znakiDoCzyszczenia ) { } -void dijkstruj(mapa doDijkstrnięcia){ - for(auto miasto : doDijkstrnięcia) - { - // doDijkstrnięcia.rbegin() - } +void dijkstruj(mapa doPrzetworzenia){ + double punktStartowy = doPrzetworzenia[0][0]; + + for (auto i = doPrzetworzenia.begin(); i != doPrzetworzenia.end(); i++) { + for (auto ii = i->second.begin(); ii != i->second.end(); ii++) { + std::cout<< i->first << ii->first << ii->second << std::endl; + } + } } void dumpOutput(string outputFile, string preparedString)