#programe with c

16 messages · Page 1 of 1 (latest)

raven gazelleBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

faint hatch
#

what's your question?

cyan osprey
faint hatch
#

ok, c'est quoi ta question??

#

ça c'est la question du prof

#

what's your question

cyan osprey
#

Ecrire un programme p2 permettant de saisir un nombre n et l’envoyer à un programme p1 à
travers un tube nommé « tub »
• Ecrire un programme p1 permettant de :
1-recevoir n à partir du tube nommé « tub »
2- saisie un tableau T d’entiers de taille n dans un thread saisieTab.
3- affichage de tableau T d’entiers de taille n dans un thread affichageTab.
4- Créer fils 1(qui retourne 1) et fils2 (qui retourne 2)
5- fils 2 recherche un entier x saisit par l’utilisateur dans le processus fils2 dans un thread
recherche et calcule la somme des éléments du tableau T dans un thread somme.
6- Le fils 2 envoie à son père à travers un tube anonyme « se trouve » si x se trouve dans le
tableau, « ne se trouve pas » dans le cas contraire.
7- Le père reçoit le résultat de son fils2à partir du tube anonyme puis ré-envoie ce résultat à son
fils1.
8- Le fils1 affiche la somme du tableau calculée dans le fils1 et l’affiche dans un thread afficheS
et reçoit l’information envoyée par son père qu’il l’affiche dans un thread afficheRch.
9- Le père doit attendre la terminaison de ses 2 fils et récupérer leurs retours.

faint hatch
#

that's not your question

#

no one here will do your assignment

cyan osprey
#

why ?

faint hatch
#

because you won't learn a single thing if we do it for you, and because it's against the server's rules

cyan osprey
faint hatch
#

well first of all, if it's a C problem, you're in the wrong thread

#

second, I can help you, but I won't do it for you

cyan osprey
#

ok thanks

raven gazelleBOT
#

@cyan osprey

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.