FUNCTIONS USED :- ============== addq() --> The function which adds questions to the database delq() --> The function which deletes questions from the database modq() --> The function which modifies questions in the database viewrec(int id,int i) --> This function displays a record of ID number "id". If i==1 it displays the record with answer viewrec1(struct question *,int a) --> This function displays a record with call be reference method with answer if a=1 test1() --> This function displays menu of Manipulating Records viewmenu() --> This function displays menu for Viewing Records reg1() --> This function registers a username login() --> This function logins a user into the game initfiles() --> This function deletes the pre-existing Q.DAT && USER.DAT files, before the first start of Quiz program. Since, these files may contain any unrecognizable data by Quiz, these will be first deleted and then re-written by Quiz's data. This ensures the consistency of the software.

--> "qe" IS THE QUESTION STRUCTURE VARIABLE --> Another sturcture variable "t1" is also declared for temporary access. --> This structure is declared globally

User structure :- ==============

name[] --> NAME OF THE USER (STRING) id[] --> THIS IS A UNIQUE ID WITH WHICH THE USER ACCESSES HIS/HER ACCOUNT. (STRING) password[] --> THIS IS LIKE A KEY FOR A USER TO ACCESS HIS ACCOUNT (STRING) log --> THIS STORES THE NUMBER OF TIMES THE USER ACCESSED HIS/HER ACCOUNT. (INTEGER)

--> "usr" IS THE USER STRUCTURE VARIABLE --> This structute is decalred globally

Accessing of Files : ================== TWO FILES ARE USED IN THE PROGRAM. THEY ARE:- 1. Q.DAT --> THE FILE WHICH STORES THE QUESTIONS DATABASE This file is accessed using the file pointer "q"

2. HISCORES.DAT --> THE FILE WHICH STORES THE WINNERS OF THE QUIZ This file is accessed using the file pointer "h"

3. USER.DAT --> THIS FILE STORES THE REGISTERED USERS DETAILS

All these file pointers are declared globally. All these files are opened in APPENDED BINARY READ/WRITE mode (ab+) at the beginning of the program and are closed finally at the end of the program. Remember, file opening and closing are done only once in the program to avoid confusion.