Correct output filename
This commit is contained in:
parent
240b3f9384
commit
7111f2c025
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
|
|
Reference in a new issue