pelin - for (i=0 i<10 i++){...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 printf("------------------------ADD------------------------") for (i=0 i<10 i++){ if(std[i]->number==atoi(temp[k+1])) { strcpy(std[i]->cources[std[i]->courcecount],temp[k+2]) std[i]->courcecount++ for (m=0 m<5 m++){ if(strncmp(cou[m]->number,temp[k+2],6)==0){ std[i]->totalcredit=std[i]->totalcredit+cou[m]->credit } } } } printf("------------------------DROP------------------------")
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for (i=0 i<10 i++){ if(std[i]->number==atoi(temp[k+1])) { for (m=0 m<8 m++){ if (strncmp(std[i]->cources[m],temp[k+2],6)==0){ while(m<7) { strcpy(std[i]->cources[m],std[i]->cources[m+1]) m++ } std[i]->courcecount--for (m=0 m<5 m++){ if(strncmp(cou[m]->number,temp[k+2],6)==0){ std[i]->totalcredit=std[i]->totalcredit-cou[m]->credit } } } } } }...
View Full Document

This note was uploaded on 01/10/2010 for the course QWE qwe taught by Professor Qwe during the Spring '09 term at Amarillo College.

Ask a homework question - tutors are online