#include // Modify this code to for your main program void exit(int); typedef struct webpage { int wpnumber; // Web page id struct webpage* nextwp; // Pointer to web page struct itarray { int indexterm; // Indexterm struct webpage* wplink; // Pointer to web page } itl[2]; } Webpage; typedef struct indexterm { int itnumber; //Index term id int numberoftimes; //# of web pages that include itnumber Webpage* link2webpage; //Pointer to web page struct indexterm* nextit; //Pointer to index term } Indexterms; int main(void) { int m,i1,i2; char t; ... while(1==1) {t=getchar(); switch(t) { case('i'): {scanf("%d %d %d",&m,&i1,&i2); printf("i %d %d %d\n", m, i1, i2); /* Should invoke a function to insert a web page*/ break;} case('d'): {scanf("%d",&m); printf("d %d\n",m); /* Should invoke a function to delete a web page */ break;} ... case('l'): {printf("l\n"); /* Should invoke a function to print the correct number */ break;} ... case('q'): {printf("q\n"); // need to delete lists exit(0);} } if('\n' != getchar()) exit(1); } }