Archive

Archive for May, 2009

RAM Disk utilities

May 31st, 2009 No comments

clear a file

May 28th, 2009 No comments

Linux:
cp /dev/null your_file_name

Windows:
copy /y nul your_file_name

Tags: , ,

Example of overloading method

May 18th, 2009 No comments
class COverload
{
public:
  COverload(int p) : m_intValue(p)
  { std::cout << "COverload::COverload() " << m_intValue << std::endl; };

  virtual ~COverload()
  { std::cout << "COverload::~COverload()" << std::endl; };

public:
  void overload(void)
  { std::cout << "COverload::overload() " << ++m_intValue << std::endl; };

  void overload(void) const
  { std::cout << "COverload::overload() const " << m_intValue << std::endl; };

protected:
  int m_intValue;
};

int main(void)
{
  COverload const dd(2);
  dd.overload();

  COverload bb(3);
  bb.overload();
}