|
From: Anton F. <tes...@bk...> - 2004-03-26 14:00:15
|
> Переделай этот примерчик, как ты считаешь нужным, и посылай, если никто
ничего не исправит еще, то мы это дело будем считать законченным:)
#ifndef _HEADER_H_
#define _HEADER_H_
namespace a
{
namespace b
{
class AlphaClass
{
};
class IBetaClass
{
};
class Class : private AlphaClass, public IBetaClass
{
public:
virtual bool Method(int _SuperParm1, float _SuperParm2);
float GetX();
void SetX(float);
private:
float m_fSomething;
};
};
};
namespace x
{
namespace y
{
namespace z
{
namespace w
{
int Function(int);
float SecondFunction(float);
}; // namespace w
}; // namespace z
}; // namespace y
}; // namespace x
#endif //#ifndef Header_h
//Как писать комментарии -- по правилам doxygen'а
//Это пример реализации:
#include "header.h"
Class someClass;
namespace a
{
namespace b
{
bool Class::Method(int _SuperParm1, float _SuperParm2)
{
for(int i=1;i>0;i++)
{
i-=2;
}
Class megoClone(*this);
int superInteger;
} // Method (имя метода)
} // namespace a
} // namespace b
|