From 9f74436f7f7caea0525a3c850115cca1355f520c Mon Sep 17 00:00:00 2001 From: tponcet <thomas.poncet@ecl19.ec-lyon.fr> Date: Mon, 29 Mar 2021 14:41:16 +0200 Subject: [PATCH] grilles dans dossier --- grilles/grilleFacile.csv | 10 ++++++++++ main.cpp | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 grilles/grilleFacile.csv diff --git a/grilles/grilleFacile.csv b/grilles/grilleFacile.csv new file mode 100644 index 0000000..295c2e5 --- /dev/null +++ b/grilles/grilleFacile.csv @@ -0,0 +1,10 @@ +# Grille extraite de https://qqwing.com/generate.html +.|9|.|.|.|4|.|.|. +.|.|.|.|.|.|.|.|8 +.|.|.|.|.|.|.|3|6 +.|7|6|.|3|.|.|4|. +9|.|3|.|.|7|.|.|2 +2|.|8|9|.|.|.|.|5 +.|8|7|4|.|.|.|.|. +.|.|.|.|.|8|.|2|. +.|2|.|.|.|.|7|.|9 diff --git a/main.cpp b/main.cpp index a9ac2ea..2eeb532 100644 --- a/main.cpp +++ b/main.cpp @@ -21,7 +21,7 @@ int main(int argc, char *argv[]){ // SI POSSIBLE CHANGER CELA EN FCT, UTILE POUR ENREGISTRER UNE PARTIE EN COURS ET LA REOUVRIR // Pb avec QFile qui ne veut pas s'initialiser Grille G; - QFile file("C:/Users/Simon/Documents/travail/ECL/Electifs/Programmation des interfaces graphiques en C++/Projet/projet_sudoku/grilleFacile.csv"); + QFile file("../Sudoku/grilleFacile.csv"); if (!file.open(QIODevice::ReadOnly)) { qDebug() << file.errorString(); return 1; -- GitLab