questa è la mia struct
questa è la mia funzione che uso per inserire tutti dati nella link listcodice:struct student{ char studentFirstName[40]; char studentLastName[40]; int studentAge; int studentRollNo; char studentClassSection[2]; int studentTotalNumber; char studentPromotion[5]; struct student* nextPoint; };
(*tempStudentInfo).studentFirstName = stufirstname qui mi da un errore dice che espressione deve essere di un lvalue modificabile cosa vuol dire grazie millecodice:void insertDataIntolinkList(char *stufirstname,char *stulastname,int stuage, int sturollno, char *stuclasssection, int stutotalnumber, char *stupromotion){ struct student* tempStudentInfo = (struct student*)malloc(sizeof(student)); (*tempStudentInfo).studentFirstName = stufirstname; }

Rispondi quotando