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

بليييييييز ساعدوني

مغلق
بدأه الإمارات في 18 ديسمبر 2006 · 3 رد · 602 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

والله حاولت احله ماعرفت :( بليز حد يساعدني

Exercises

Q1. Create the following structure definition:

The <struct type> is called Student .

The structure Student has three member variables namely,

ID, age and mark

where ID, age and mark are of type int respectively.

Declare a variable of the struct type Student and call it stud.

Ask the user to enter the values for these member variables.

Store these values in the corresponding member variables.

Finally, display the entered values in a formatted form.

Q2. Modify the above program to perform the following:

Create more than one variable (i.e. 2 variables) of the struct type Student by declaring an array of the type Student.

#2

:blink:

متأكد انك قرأت الأسئلة ... ترى حلهم خمس دقائق بالكثير مع مراجعة البرنامج ...

على كل حال هذا تعريف Student Structure و عملية الإدخال و الطباعة عليك :

struct Student 
{

	 int id, age, mark;
}

تصور هذا هو Student Structure الذي حاولت و لم تستطع !

و هذا لتعريفه داخل البرنامج الرئيسي :

Student stud;
#3

اخوي والله انا حاولت افهم هالدرس 10000 مرة مب قادرة استوعبه وللأسف اني كنت مريضة ماحضرت الكلاس وكل يوم باجر يقولي الدكتور ياريت اساعدني اكثر فيه :(

#4

كما قال أخي خالد .. لا مساعده قبل رؤية المحاوله حتى و لو كانت خاطئه :)

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

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