Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wims-info
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Thiery
wims-info
Commits
69134385
Commit
69134385
authored
10 years ago
by
Nicolas M. Thiéry
Browse files
Options
Downloads
Patches
Plain Diff
WIMS: peaufinage
parent
cee81aac
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test~coding~readingCppPrograms.fr/src/cpp/read_program.cpp
+23
-5
23 additions, 5 deletions
test~coding~readingCppPrograms.fr/src/cpp/read_program.cpp
with
23 additions
and
5 deletions
test~coding~readingCppPrograms.fr/src/cpp/read_program.cpp
+
23
−
5
View file @
69134385
target
=
variable
if
loop
function
target
=
variable
io
if
loop
function
vector2D
#if defined TARGET_variable
#define TARGET variable
#define TARGET_FR variables
#endif
#if defined TARGET_io
#define TARGET io
#define TARGET_FR Entres-Sorties
#endif
#if defined TARGET_if
#define TARGET if
#define TARGET_FR conditionnelles
...
...
@@ -20,6 +25,11 @@ target=variable if loop function
#define TARGET_FR fonctions
#endif
#if defined TARGET_vector2D
#define TARGET vector2D
#define TARGET_FR tableaux 2D
#endif
\
title
{
Deviner
l
'
affichage
d
'
un
programme
C
++
(
TARGET_FR
)}
\
description
{
Deviner
l
'
affichage
d
'
un
programme
C
++
}
\
language
{
fr
}
...
...
@@ -31,10 +41,16 @@ target=variable if loop function
\
text
{
programs
=
wims
(
lookup
TARGET
in
data
/
index
)}
\
text
{
program
=
randomitem
(
\
programs
)}
\
text
{
code
=
wims
(
record
0
of
data
/
\
program
)}
\
text
{
output
=
wims
(
lines2words
wims
(
record
0
of
data
/
\
program
.
output
))}
\
text
{
answer
=
wims
(
lines2words
wims
(
record
0
of
data
/
\
program
.
answer
))}
\
integer
{
height
=
wims
(
linecnt
\
code
)
+
3
}
\
integer
{
heightpixels
=
10
*
\
height
}
\
if
{
_input
.
cpp
isin
\
program
}{
\
text
{
answerstyle
=
text
}
}{
\
text
{
answerstyle
=
symtext
}
}
\
css
{
<
script
type
=
"text/javascript"
src
=
"scripts/js/edit_area/edit_area_full.js"
></
script
>
<
script
type
=
"text/javascript"
>
...
...
@@ -54,13 +70,15 @@ target=variable if loop function
</
script
>
}
\
statement
{
\
if
{
_input
.
cpp
isin
\
program
}{
<
p
>
Quel
nombre
entre
0
et
99
devrait
saisir
l
'
utilisateur
pour
que
le
programme
C
++
suivant
affiche
42
?</
p
>
}{
<
p
>
Quel
affichage
exact
produit
le
programme
C
++
suivant
?</
p
>
<
p
>
Les
espaces
,
tabulations
et
sauts
de
lignes
dans
la
rponse
sont
considrs
comme
quivalents
.
</
p
>
}
<
textarea
id
=
"wims_show"
cols
=
"80"
rows
=
"\height"
name
=
"wims_show"
readonly
=
"readonly"
>
\
special
{
tabs2lines
\
code
}
</
textarea
>
}
\
answer
{}{
\
output
}{
type
=
symtext
}
\
answer
{}{
\
answer
}{
type
=
\
answerstyle
}
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