المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : مساعدة في برنامج يظهر احتمالات ترتيب كتب


مستر سمبل
2013-02-17, 17:13
ارجو المساعدة في برنامج في c يظهر جميع احتمالات ترتيب عدد من الكتب او ارقام بدون تكرار الكتاب في الاحتمال
هذا التمرين سنة اولى mi:dj_17:

سارق الأحزان
2013-02-18, 07:52
2 boucles for
وتحط affichage في الوسط
فكرتو جد بسيطة

مستر سمبل
2013-02-21, 11:23
فكرتك تصلح في 3 كتب فقط اما 4 فما فوق لا تصلح
واذا كان ممكن تساعدنا بلخوارزمية وليبس ببكل فور

agm1991
2013-02-21, 17:29
السلام عليكم ورحمة الله وبركاته
الهدف هو اظهار جميع القوائم الممكنة .

قد تساعدك هذه الروابط
فرنسية
http://www.cppfrance.com/forum/sujet-LISTER-TOUS-COMBINAISONS-ELEMENTS_958876.aspx
http://forum.hardware.fr/hfr/Programmation/C-2/resolu-renvoyer-combinaison-sujet_23393_1.htm
http://c.developpez.com/telecharger/detail/id/2645/Generateur-de-combinaisons
الانجليزية
http://stackoverflow.com/questions/10315617/getting-all-the-combinations-of-a-number-in-c
http://stackoverflow.com/questions/9430568/generating-combinations-in-c
http://stackoverflow.com/questions/12185258/add-a-long-array-in-all-possible-combinations
http://www.cplusplus.com/forum/general/32591/
ابحث في جوجل ب: Générateur de combinaisons
ستجد الكثير بإذن الله
بعض الروابط معقدة بالنسبة لسنة 1 .

سارق الأحزان
2013-02-21, 18:42
aaah d'accord
dzl frer
prblm d tmps
la solution c la rucursivité

غبار الذهب
2013-02-22, 20:10
اريد حلا بسيطا من فضلكم لانه اناايضا كنت ابحث عن حل هذا السؤال لكن سبقني اليه عضو اخر وشكراااا

you92cef
2013-02-22, 20:54
لم افهم صراحة هدف البرنامج لانه يتعلق بالاحتمالات اولا وبدرجة اكبر ثم بالبرمجة
عموما
le but de programe est de saisir un champ d'enrigistrement

book=record
nom:string
code:integer;

apres ca c'est un problem de proba
car si on na 2 book on a 2 possibilite
book1 premiere place
book 2 deusieme place
ou
book 2 premiere place
book 1 deusieme place

si on a 3 book
ici on dois connaitre le nombre de proba dans ce ca je penca que on a 6 possibiliteé
3*2*1
pour resoudre se problem on dois faire 3 boucle
la priere fixe la priere place
deusieme la d2'eme place
3ieme la 3ieme place

est on parcours

avec le nom ou le code ou le prix
c'est un cas de tirage par example

اعتدر عن اكمال البرنامج لانني صرت لا احب الاحتامالات بعد اجتياز الامتحان في مادتها *-* الحمد لله تهنينا منها خخخخخخخخخ

agm1991
2013-02-22, 20:55
السلام عليكم ورحمة الله وبركاته
يبدوا اني اخطأت في الرد الاول
التمرين الغرض منه توليد جميع التبديلات الممكنة
http://compprog.wordpress.com/2007/10/08/generating-permutations-2/
http://www.geeksforgeeks.org/write-a-c-program-to-print-all-permutations-of-a-given-string/
http://forum.codecall.net/topic/64715-how-to-generate-all-permutations/
للاسف لم اجد بالفرنسية
ابحث في جوجل ب Generating Permutations

you92cef
2013-02-22, 20:56
aaah d'accord
dzl frer
prblm d tmps
la solution c la rucursivité
oui
mais la recursiviteé c'zst pour 2ieme anneé

on peut travailler avec selemon des boucles

غبار الذهب
2013-02-25, 19:11
شكرا جزيلا وبارك الله فيك على هذه المساعد والجهد المبذول وبالتوفيق انشاء الله

غبار الذهب
2013-02-25, 19:40
من يدرس سنة اولى mi بجامعة المسيلة

khairo sebouai
2013-03-01, 18:27
ana na9ra 1 ere anneee math et info f lemsila

مستر سمبل
2013-03-06, 09:25
شكرا لكل الاعضاء
وانا ايضا من المسيلة

غبار الذهب
2013-05-10, 11:40
هل تدرس في الفوج 3

khairo sebouai
2013-05-22, 14:05
moi nnn
machi groupe 3

غبار الذهب
2013-06-28, 18:55
انا لااقصدك بل اقصد العضو yacinepes اما انت فليس لديا اي احتمالات فمن اي فوج انت؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟