Untitled

 avatar
unknown
plain_text
2 years ago
355 B
17
Indexable
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>

#include "function.h"


int main()
{
	struct nodeClass *head = NULL;

	int id, midterm;
	scanf("%d", &id);
	while(id!=-1)
	{
		scanf("%d", &midterm);
		insert(&head, id, midterm);
		scanf("%d", &id);
	}

	
	computeClassAverage(head);

	printAll(head);

	return 0;

}
Editor is loading...