Correct output filename

This commit is contained in:
Mylloon 2022-05-08 16:10:27 +02:00
parent 240b3f9384
commit 7111f2c025
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -24,11 +24,11 @@ int main(int argc, char const *argv[]) {
return 1;
} */
std::string chemin_image("test.bmp");
std::string chemin_image("resultat.bmp");
if(std::ifstream(chemin_image).is_open()) {
char choix;
do {
std::cout << "Le fichier existe déjà, voulez vous l'écraser ? y/n" << std::endl;
std::cout << "Le fichier \""<< chemin_image << "\" existe déjà, voulez vous l'écraser ? y/n" << std::endl;
std::cin >> choix;
choix = tolower(choix);
} while(choix != 'n' && choix != 'y' && choix != 'o');