Coder's Guild Mailing List

Re: Splitting a project

Posted by Frank Hale on 1999-07-19

This is the way I do it.

okay say I have a class foo. I declare it in a header
like so

// foo header
#ifndef _FOO_H_
#define _FOO_H_

class foo 
{
public:
	foo();
	~foo();

	void foobar();
};

#endif

then I implement the class in a separate .cc file like
so:

// class foo implementation
#include "foo.h"

foo::foo() {}
foo::~foo() {}

void foo:foobar() {}

then I create a makefile (for you would be a new
project) and then I compile. This way it keeps things
nice and clean. The declaration is separate from the
implementation.

Frank
===
From: Frank Hale
ICQ: 7205161
Webpage: http://jade.netpedia.net/
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com