Monday, July 27, 2009

Programming in C?

#define MAX 100





typedef char string8[9];


typedef char string30[31];





typedef struct


{ string8 strId;


string30 strName;


string8 strCourse;


} structIDRecType;


typedef structIDRecType arrID[MAX];





(1) Write function sortArr that will arrange the contents of the


array in ascending order according to its strId. Note that the


contents of the structures need not be unique. This means that you


may have several copies of the same structure. Furthermore, you are


not allowed to introduce additional arrays. Use the function


heading below:


void sortArr (arrID aId)

Programming in C?
Why can't you do your own homework?


No comments:

Post a Comment