الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

[مخالف]مساعدة عاجلة

مغلق
بدأه Eng_Iman في 15 أبريل 2012 · 1 رد · 172 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ورحمة الله وبركاته

أتمنى ان يكون الجميع بأفضل حال

انا هنا لاطرح مشكلة لي بلغة البرمجة C

مع العلم اني طالبة سنة اولى هندسة انظمة حاسوب

مطلوب مني حل هذا السؤال عاجلاً لكني أخفقت في فهمه وفي حله

ارجو المساعدة :(

Write a program that uses random number generation to create sentences the program should use four arrays of pointers to char called article, noun, verb, and preposition. The program should create a sentence by selecting a word at random from each array in the following order: article, noun, verb, preposition, article, and noun. As each word is picked, it should be concatenated to the previous words in an array which is large enough to hold the entire sentence. The words should be separated by spaces. When the final sentence is output, it should start with a capital letter and end with a period. The program should generate 20 such sentences

The arrays should be filled as follows: the article array should contain the articles “the”, “a”, “one”, “some”, and “any”; the noun array should contain the nouns “boy”, “girl”, “dog”, “town”, and “car”; the verb array should contain the verbs “drove”, “jumped”, “ran”, “walked”, and “skipped”; the preposition array should contain the prepositions “to”, “from”, “over”, “under”, and “on”.

After the preceding program is written and working modify the program to produce a short story consisting of several of these sentences.

وشكراً لكم سلفاً

#2

الأخ الكريم/الأخت الكريمة

السلام عليكم ورحمة الله وبركاته

مرحباً بكم في منتدى الفريق العربي للبرمجة

تأسف إدارة المنتدى لغلق الموضوع وذلك لمخالفته قوانين المشاركات .

قواعد طرح المشاركات

/index.php?showtopic=29343

شاكرين لكم حُسن تعاونكم

{username}

مدونتي: C++ Tips and Tricks

هذا الموضوع مغلق.

مواضيع مشابهة