class MyClass
{
public:
MyClass();
};
something.cpp:
#include "something.h"
.
.
MyClass::MyClass()
{
.
.
}
Cheers,
Chris
class MyClass
{
public:
MyClass();
};
something.cpp:
#include "something.h"
.
.
MyClass::MyClass()
{
.
.
}
Cheers,
Chris
#ifndef SOME_UNIQUE_STRING#define SOME_UNIQUE_STRINGclass MyClass{ //implementation};#endif
// Foo.hppclass Foo{public: void complexFunction(); // Implementation in Foo.cpp int getBar() const; // Implemented further down, allowing for inliningprivate: int m_bar;};inline int Foo::getBar() const{ return m_bar;}