اخواني الاعزاء
ارجو منكم المساعدة في حل المشكلة المتعلقة بهذا البرنامج المكتوب بواسطة ال c
#include
#include
main()
{
struct stdata{ char *stname[];
char *clas[];
int *score[3];
}
student;
struct stdata ahmed;
printf (" Enter the Student name ");
scanf ("%s",&*student.stname);
printf (" Enter the Student class ");
scanf ("%s",&*student.clas);
printf (" Enter the Student score ");
scanf ("%d",&*student.score);
printf ("n Student name %s",&student.stname);
printf ("n Student class %s",&student.clas);
printf ("n Student score %s",&student.score);
getch();
}
هذا البرنامج يقوم بقراءة اسم الطالب و الفصل و الدرجة لكن عند الجزء الخاص بالطباعة يظهر لي رسالة (قام هذا البرنامج بعملية غير شرعية) و اذا كان هنا طريقة اخرى لكتابته ارجو التكرم ووضعها و اي معلومات عن ال struct