View Single Post
Old April 1st, 2003, 12:14 AM     #4 (permalink)
ILC
Senior Member
 
ILC's Avatar
 
Join Date: Oct 2001
Location: Eastern Shore
Posts: 701
Quite a bit goes into writing classes. You have been pretty vague…could you please specify a little better what exactly it is that you need help with?

I assume that the header file was given to you? Furthermore, I assume that you must define all of the functions within a set of given parameters? Do you know that you are going to need a class.h file and a class.cpp file?

Alright, here is a quickie (let us know if you need further help or a specific question):

Using the syntax you provided for us as the .h file, here would be the supplemental .cpp file:

Code:
#include “BarrierType.h”

BarrierType::BarrierType(void)
{
//insert function code here
//initialization function
}

void BarrierType::BarrierOpen(void)
{
	//insert code
}

void BarrierType::BarrierClosed(void)
{
	//insert code
}


void BarrierType::SwitchMode(void)
{
	//insert code
}

bool BarrierType::Open(void)
{
	//insert code
}

char BarrierType::GetMode(void)
{
	//insert code
}

bool BarrierType::SetCode(AnsiString NewCode)
{
	//insert code
}

bool BarrierType::Correct(AnsiString Attempt)
{
	//insert code
}
Let us know what it is you need help with.

ILC
ILC is offline   Reply With Quote