Exercice colle en C

blackmamba - 12 oct. 2013 à 10:28
cptpingu Messages postés 3837 Date d'inscription dimanche 12 décembre 2004 Statut Modérateur Dernière intervention 28 mars 2023 - 12 oct. 2013 à 12:46
Bonjour j'ai actuellement un exercice a faire pour ma fin de semaine et je ne comprend absolument pas ce que me demande le sujet, j'ai essayer le traduire mais sans façon impossible de comprendre je laisse donc ici le sujet pour quelqu'un qui veuille bien m'expliquer

Binary name:
colle2-2
* Your source code will be compiled with the following command:
cc *.c -o colle2-2
* You have to develop a program that takes a character string in parameter.
* On a space of twice the size of this string, the string moves to the right then to the
left while doing a rotation of the text in the direction of the movement...
* The program will never stop.
* A test binary is available on the intranet with the subject
* Example:
./colle2-2 "Enjoy the conf of the LoOsEr:)"
* The scrolling speed can be given in parameter:
./colle2-2 "Enjoy the conf of the LoOsEr:)" 5000
* The previous program does not execute at the same speed as:
./colle2-2 "Enjoy the conf of the LoOsEr:)" 90000
* If the speed parameter is not provided, you shall attribute a default speed of your
choice.

Merci d'avance !

2 réponses

BunoCS Messages postés 15476 Date d'inscription lundi 11 juillet 2005 Statut Modérateur Dernière intervention 3 mai 2024 103
12 oct. 2013 à 12:20
Hello,
Voici une petite lecture, notamment le point 1.
Nous ne sommes pas tes professeurs et nous ne savons donc pas ce qui est attendu de l'exercice.
N'hésites pas à les contacter pour avoir plus de détails.

un exercice a faire pour ma fin de semaine
Tu t'y prends peut-être un peu tard...
0
cptpingu Messages postés 3837 Date d'inscription dimanche 12 décembre 2004 Statut Modérateur Dernière intervention 28 mars 2023 123
12 oct. 2013 à 12:46
On te demande d'écrire un programme qui fait rebondir un texte de gauche à droite sur l'écran.

* On a space of twice the size of this string, the string moves to the right then to the
left while doing a rotation of the text in the direction of the movement...
Pour ce genre de chose, il est clair que tu dois demander à tes professeurs. Ce n'est pas que l'on ne veuille pas t'aider, mais que c'est tout simplement impossible !
On ne peut pas deviner ce qui t'es demandé...

* A test binary is available on the intranet with the subject
Si tu as un binaire de test, il ne te reste qu'à faire des essais avec celui-ci pour comprendre le comportement attendu.
0
Rejoignez-nous