Skip to content
Snippets Groups Projects
Commit 76d299ef authored by Ulysse Durand's avatar Ulysse Durand
Browse files

corrected

parent 4889a44a
No related branches found
No related tags found
No related merge requests found
...@@ -52,9 +52,10 @@ void Ligne::show() { ...@@ -52,9 +52,10 @@ void Ligne::show() {
cout << "|" << endl; cout << "|" << endl;
} }
bool Ligne::dansMot(QChar lettre, string mot) { bool Ligne::dansMot(char lettre, string mot) {
cout << lettre << " " << mot << endl;
for (int i=0;i<mot.length();i++) { for (int i=0;i<mot.length();i++) {
if (mot[i] == lettre) { if (mot[i] == tolower(lettre)) {
return true; return true;
} }
} }
......
...@@ -24,13 +24,12 @@ public: ...@@ -24,13 +24,12 @@ public:
void show(); void show();
vector<VraieCase*> contenu; vector<VraieCase*> contenu;
string getMot(); string getMot();
bool dansMot(char lettre, string mot);
private: private:
string bonmot; string bonmot;
int positionCurseur; int positionCurseur;
int taille; int taille;
static bool dansMot(QChar lettre, std::string mot);
}; };
#endif // LIGNE_H #endif // LIGNE_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment