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
Alexandros Bokaris
wims-info
Commits
7de91d78
Commit
7de91d78
authored
10 years ago
by
Nicolas M. Thiéry
Browse files
Options
Downloads
Patches
Plain Diff
WIMS: peaufinage exercice guess output
parent
aab32494
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
TODO
+3
-16
3 additions, 16 deletions
TODO
test~coding~readingCppPrograms.fr/src/cpp/guess_output.cpp
+9
-12
9 additions, 12 deletions
test~coding~readingCppPrograms.fr/src/cpp/guess_output.cpp
with
12 additions
and
28 deletions
TODO
+
3
−
16
View file @
7de91d78
* Collections de programmes + randomisation + résultat
** Features
- [X] Code colorization
- [X] Code area just of the proper height
- [X] Selection of topic based on file prefix
- [ ] Output dans un textarea
`symtext` almost does the job but the comparison is not yet
configured properly:
1 2 4 8 mauvaise réponse, la bonne réponse est 1.
- [X] Output dans un textarea
- [ ] Why are empty lines on top and bottom of the text aread
- [ ] Randomization of the variable names
- [ ] Randomization of the output by substitution (preprocessing)
- [ ] Implement more logic in WIMS
...
...
@@ -19,17 +17,6 @@
** Substitution des variables?
\text{code=\wims(replace internal resultat par \resultat)}
** Utiliser un textarea pour les entrées
Fonctionalite à rajouter à WIMS?
Il est possible de définir ses propres types d'entrées. Voir
public_html/scripts/anstype pour des exemples. En particulier
symtext. Voir la documentation; il doit y avoir des options pour ne
pas
État actuel:
* Choisir l'entrée pour que ...
* Écrire un programme qui ... par exemple pour n=5 ... copier coller le résultat ici
* Exercices existant: U1 / algo
...
...
This diff is collapsed.
Click to expand it.
test~coding~readingCppPrograms.fr/src/cpp/guess_output.cpp
+
9
−
12
View file @
7de91d78
...
...
@@ -31,7 +31,9 @@ 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
(
record
0
of
data
/
\
program
.
output
)}
\
text
{
output
=
wims
(
lines2words
wims
(
record
0
of
data
/
\
program
.
output
))}
\
integer
{
height
=
wims
(
linecnt
\
code
)
+
3
}
\
integer
{
heightpixels
=
10
*
\
height
}
\
css
{
<
script
type
=
"text/javascript"
src
=
"scripts/js/edit_area/edit_area_full.js"
></
script
>
...
...
@@ -40,10 +42,11 @@ target=variable if loop function
id:
"wims_show"
,
start_highlight
:
true
,
allow_toggle
:
false
,
allow_resize
:
true
,
language
:
"fr"
,
syntax
:
"cpp"
,
min_height
:
4
00
,
min_width
:
4
00
,
min_height
:
2
00
,
min_width
:
3
00
,
is_editable
:
false
,
toolbar
:
""
,
show_line_colors
:
false
...
...
@@ -55,15 +58,9 @@ target=variable if loop function
\
statement
{
<
p
>
Quel
affichage
exact
produit
le
programme
C
++
suivant
?</
p
>
<
p
>
Si
l
'
affichage
comporte
plusieurs
lignes
,
les
donner
les
unes
la
suite
des
autres
,
spares
par
des
espaces
.
</
p
>
<
p
>
Les
espaces
,
tabulations
et
sauts
de
lignes
dans
la
rponse
sont
considrs
comme
quivalents
.
</
p
>
\
special
{
tabs2lines
<
textarea
id
=
"wims_show"
cols
=
"100"
rows
=
"15"
name
=
"wims_show"
readonly
=
"readonly"
>
\
code
</
textarea
>
<
textarea
id
=
"wims_show"
cols
=
"80"
rows
=
"\height"
name
=
"wims_show"
readonly
=
"readonly"
>
\
special
{
tabs2lines
\
code
}
</
textarea
>
}
}
\
answer
{}{
\
output
}{
type
=
text
}
\
answer
{}{
\
output
}{
type
=
symtext
}
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