PROGRAM ON DEFINING A CLASS TEST.

#include<iostream.h>
#include<conio.h>
#include<stdio.h>
Class TEST
{
       int testcode;
       char description[20];
       int no_candi,centerreqd;
       void CALCNTR();
       public:
       void SCHEDULE();
       void DISPTEST();
};
Void TEST::CALCNTR()
{
       centereqd=(no_candi/100)+1;
}
void TEST::SCHEDULE()
{
       cout<<”Test code:”;
       cin>>testcode;
       cout<<”Description:”;
       gets(description);
       cout<<”Number”;
       cin>>no_candi;
       CALCNTR();
}
void TEST::DISPTEST()
{
       cout<<”Test code”<<testcode;
       cout<<”Description”<<description;
       cout<<”Number”<<no_candi;
       cout<<”Centres”<<centereqd;

Comments

Popular Posts