Plik testowy, importy i funkcja zapisująca do pliku
This commit is contained in:
@@ -69,6 +69,14 @@ void dijkstruj(mapa doDijkstrnięcia){
|
||||
}
|
||||
}
|
||||
|
||||
void dumpOutput(string outputFile, string preparedString)
|
||||
{
|
||||
ofstream file(outputFile);
|
||||
file << preparedString;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Funkcja parsująca dane wejściowe.
|
||||
*
|
||||
@@ -127,6 +135,7 @@ int main (int argc, char *argv[])
|
||||
parseInput(plikWejsciowy);
|
||||
dijkstruj(mapaOdległości);
|
||||
plikWyjsciowy = result["output"].as<string>();
|
||||
|
||||
} else {
|
||||
std::cout << std::endl << "Błąd - nie podano wymaganych parametrów" << std::endl << std::endl << std::endl << options.help() << std::endl;
|
||||
exit(3);
|
||||
|
||||
Reference in New Issue
Block a user