Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
projetcppqt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Durand Ulysse
projetcppqt
Commits
76d299ef
Commit
76d299ef
authored
3 months ago
by
Ulysse Durand
Browse files
Options
Downloads
Patches
Plain Diff
corrected
parent
4889a44a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
motus/ligne.cpp
+3
-2
3 additions, 2 deletions
motus/ligne.cpp
motus/ligne.h
+1
-2
1 addition, 2 deletions
motus/ligne.h
with
4 additions
and
4 deletions
motus/ligne.cpp
+
3
−
2
View file @
76d299ef
...
@@ -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
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
motus/ligne.h
+
1
−
2
View file @
76d299ef
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment