Skip to content

Commit

Permalink
Sentences
Browse files Browse the repository at this point in the history
Correcting sentences
Translate one sentence related to the logo file
Changing sentences to be more explicative
  • Loading branch information
EnoGame29 committed Jan 22, 2025
1 parent db3927e commit 13c24dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ std::vector<int> Graph::shortest_path(int source, int target, int& totalTime) {
}
}

// Terminate if the best cost is finalized
// Finish if the best cost is finalized
if (meetingNode != -1) break;
}

Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void display_logo(const string& file_path) {
}
logo_file.close();
} else {
cerr << "Erreur : Impossible d'ouvrir le fichier du logo." << endl;
cerr << "Error: Unable to open logo file." << endl;
}
}

Expand All @@ -42,7 +42,7 @@ void display_progress_bar(size_t current, size_t total) {
bool preprocess_data_with_progress(const string& filePath, int maxLines, Graph& graph, size_t& totalLinesProcessed) {
ifstream inputFile(filePath);
if (!inputFile.is_open()) {
throw runtime_error("Error: Unable to open file " + filePath);
throw runtime_error("Error: Unable to find the CSV file!" + filePath);
}

// Compter les lignes dans le fichier
Expand Down
2 changes: 1 addition & 1 deletion src/preprocessing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ bool preprocess_data(const string& filePath, int maxLines, const string& outputJ

ifstream inputFile(filePath);
if (!inputFile.is_open()) {
throw runtime_error("Error: Unable to open file " + filePath);
throw runtime_error("Error: Unable to find the CSV file!" + filePath);
}

// Process data in chunks directly from the file stream to avoid large memory usage
Expand Down

0 comments on commit 13c24dc

Please sign in to comment.