aboutsummaryrefslogtreecommitdiff
path: root/exam01/subjects/3-0-wdmatch
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-16 12:58:13 +0200
committerCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-16 12:58:13 +0200
commit66635d69fa00e335a091d7e6f2b358cbaaf205e4 (patch)
tree3ecf5a41b4541980ba0287a431681cd5ae25ad84 /exam01/subjects/3-0-wdmatch
parent11114fd684250943de56c4f73ab45c97f2aaf83a (diff)
downloadpiscine-66635d69fa00e335a091d7e6f2b358cbaaf205e4.tar.gz
piscine-66635d69fa00e335a091d7e6f2b358cbaaf205e4.tar.bz2
piscine-66635d69fa00e335a091d7e6f2b358cbaaf205e4.zip
c09 passed, c10 start, exam00 and exam01
Diffstat (limited to 'exam01/subjects/3-0-wdmatch')
-rw-r--r--exam01/subjects/3-0-wdmatch/examples.txt10
-rw-r--r--exam01/subjects/3-0-wdmatch/subject.en.txt26
-rw-r--r--exam01/subjects/3-0-wdmatch/subject.fr.txt28
3 files changed, 64 insertions, 0 deletions
diff --git a/exam01/subjects/3-0-wdmatch/examples.txt b/exam01/subjects/3-0-wdmatch/examples.txt
new file mode 100644
index 0000000..cf0c96a
--- /dev/null
+++ b/exam01/subjects/3-0-wdmatch/examples.txt
@@ -0,0 +1,10 @@
+$>./wdmatch "faya" "fgvvfdxcacpolhyghbreda" | cat -e
+faya$
+$>./wdmatch "faya" "fgvvfdxcacpolhyghbred" | cat -e
+$
+$>./wdmatch "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " | cat -e
+quarante deux$
+$>./wdmatch "error" rrerrrfiiljdfxjyuifrrvcoojh | cat -e
+$
+$>./wdmatch | cat -e
+$
diff --git a/exam01/subjects/3-0-wdmatch/subject.en.txt b/exam01/subjects/3-0-wdmatch/subject.en.txt
new file mode 100644
index 0000000..a8e058d
--- /dev/null
+++ b/exam01/subjects/3-0-wdmatch/subject.en.txt
@@ -0,0 +1,26 @@
+Assignment name : wdmatch
+Expected files : wdmatch.c
+Allowed functions: write
+--------------------------------------------------------------------------------
+
+Write a program that takes two strings and checks whether it's possible to
+write the first string with characters from the second string, while respecting
+the order in which these characters appear in the second string.
+
+If it's possible, the program displays the string, followed by a \n, otherwise
+it simply displays a \n.
+
+If the number of arguments is not 2, the program displays a \n.
+
+Examples:
+
+$>./wdmatch "faya" "fgvvfdxcacpolhyghbreda" | cat -e
+faya$
+$>./wdmatch "faya" "fgvvfdxcacpolhyghbred" | cat -e
+$
+$>./wdmatch "forty two" "qfqfsoudf arzgrsayns tsryegftdgs sjytwdekuooixq " | cat -e
+forty two$
+$>./wdmatch "error" rrerrrfiiljdfxjyuifrrvcoojh | cat -e
+$
+$>./wdmatch | cat -e
+$
diff --git a/exam01/subjects/3-0-wdmatch/subject.fr.txt b/exam01/subjects/3-0-wdmatch/subject.fr.txt
new file mode 100644
index 0000000..383fe15
--- /dev/null
+++ b/exam01/subjects/3-0-wdmatch/subject.fr.txt
@@ -0,0 +1,28 @@
+Assignment name : wdmatch
+Expected files : wdmatch.c
+Allowed functions: write
+--------------------------------------------------------------------------------
+
+Le programme prend en paramètres deux chaînes de caractères et vérifie qu'il
+est possible d'écrire la première chaîne de caractères a l'aide des caractères
+de la deuxiême chaîne, tout en respectant l'ordre des caractères dans la
+deuxième chaîne.
+
+Si cela est possible, le programme affiche la première chaîne de caractères,
+suivie de '\n'. Sinon le programme affiche seulement '\n'.
+
+Si le nombre de paramètres transmis est différent de 2, le programme affiche
+'\n'.
+
+Exemples :
+
+$>./wdmatch "faya" "fgvvfdxcacpolhyghbreda" | cat -e
+faya$
+$>./wdmatch "faya" "fgvvfdxcacpolhyghbred" | cat -e
+$
+$>./wdmatch "forty two" "qfqfsoudf arzgrsayns tsryegftdgs sjytwdekuooixq " | cat -e
+forty two$
+$>./wdmatch "error" rrerrrfiiljdfxjyuifrrvcoojh | cat -e
+$
+$>./wdmatch | cat -e
+$ \ No newline at end of file