عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 29-04-2010, 11:49 PM   #534

هوتميلكوم

جامعي

 
تاريخ التسجيل: Apr 2010
التخصص: computer science
نوع الدراسة: إنتظام
المستوى: الأول
الجنس: أنثى
المشاركات: 22
افتراضي رد: [cpcs 202 - برمجة 1] لديك سؤال , واجبات , شيء غير مفهوم ,,, تفضل هنا , موضوع مفيد

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

بصراحة منتدى جداً رائع واستفدت بشكل كبير من المعلومات لإنني مبتدئة بالسي وأعاني من مشاكل
اتمنى منكم مساعدتي في حل هذا السؤال ولكم جزيل الشكر

numeric address for computers on the international network internet are composed of four parts, separated by periods ,of the form
xx.yy.zz.mm
where xx,yy,zz ,and mm are positive integers. Locally,computers are usually known by a nickname as well. you are designing a program to process a list of internet addresses, identifying all pairs of computers from the same locality.
create a structure type called address_t wit components for the four integers of an internet address and a fifth component in which to store an associated nickname of 10 characters. your program should read a list of up to 100 addresses and nicknames terminated by a sentinel address of all zeros and a sentinel nickname.


Sample Data
111.22.3.44 platte
555.66.7.88 wabash
111.22.5.66 green
0.0.0.0 none
the program should display a list of messages identifying each pair of computers from the same locality___that is , each pair of computers with matching values in the first two components of the address. In the messages, the computers should be identified by their nicknames.

رجاء من يستطيع مساعدتي في حله بأقرب وقت ممكن
وسأكون شاكرة جداً له

عندي امتحان فيه ولم استطع الحل
وان شاء الله مجهودكم في ميزان حسناتكم

 

هوتميلكوم غير متواجد حالياً   رد مع اقتباس