Strings and Structures/assign4.c
void displayCourseInfo(const CourseInfo *courses, const size_t courseCount){
    printf("\n%-5s%-20s%-20s%-8s\n", "ID","Name","Code","Term");
    for(size_t i = 0; i < courseCount; i++){
        printf("%-5d%-20s%-20s%-8s\n", courses[i].courseID, courses[i].courseName, courses[i].courseCode, courses[i].term);
    }
}
/*
    displayCourseInfo: displays the all courses information 
    input: an array of courses to display (courses), the number of courses to display (courseCount)
*/
displays the all courses information
input: an array of courses to display (courses), the number of courses to display (courseCount)
displays the all courses information input : an array of courses to display ( courses ) the number of courses to display ( courseCount )
void displayCourseInfo(const CourseInfo *courses, const size_t courseCount){
    printf("\n%-5s%-20s%-20s%-8s\n", "ID","Name","Code","Term");
    for(size_t i = 0; i < courseCount; i++){
        printf("%-5d%-20s%-20s%-8s\n", courses[i].courseID, courses[i].courseName, courses[i].courseCode, courses[i].term);
    }
}
void displayCourseInfo ( const CourseInfo * courses , const size_t courseCount ) { printf ( " \n \n " , " " , " " , " " , " " ) ; for ( size_t i = 0 ; i < courseCount ; i ++ ) { printf ( " \n " , courses [ i ] . courseID , courses [ i ] . courseName , courses [ i ] . courseCode , courses [ i ] . term ) ; } }
displayCourseInfo: displays the all courses information
input: an array of courses to display (courses), the number of courses to display (courseCount)
displayCourseInfo : displays the all courses information input : an array of courses to display ( courses ) the number of courses to display ( courseCount )