From eba8e98421599f2e42f75f2ae069f761abd30626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20M=2E=20Thi=C3=A9ry?= <nthiery@users.sf.net> Date: Sun, 28 Sep 2014 23:26:33 +0200 Subject: [PATCH] WIMS: trivial minimal script --- oef/main.oef | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 oef/main.oef diff --git a/oef/main.oef b/oef/main.oef new file mode 100644 index 0000000..ce124e4 --- /dev/null +++ b/oef/main.oef @@ -0,0 +1,35 @@ +\title{Affichage d'un programme C++} +\language{fr} +\author{Nicolas M. ThiƩry} +\email{Nicolas.Thiery@u-psud.fr} +\format{html} + +\text{code= +#include <iostream> +using namespace std; + +int main() { + int x = 1+2; + if ( x == 3 ); { + cout << "Bonjour!" << endl; + } + cout << "Au revoir." << endl; + return 0; +} +} + +\text{output= +42 +} + +\statement{ +<p> +Qu'affiche le programme suivant? +<hr> +<pre> +\special{expandlines \code} +</pre> +<hr> +} + +\answer{La longueur}{\output}{type=text} -- GitLab