'lang) C++'에 해당되는 글 6건

  1. 2010/06/22 ACE 설치 방법
  2. 2010/05/22 상속 받는 경우 실행되는 순서
  3. 2010/05/06 recursive 함수의 call 이 되는 순서
블로그 이미지

ACE 설치 방법

lang) C++ 2010/06/22 16:24
  • windows
    • ACE_wrapper/ace 에서
    • config.h 파일 생성
      #define ACE_HAS_STANDARD_CPP_LIBRARY 1
      #include “config-win32.h”
  • linux
    • ACE_wrapper/ace 에서
      ln –s config-linux.h config.h
    • ACE_wrapper/include/makeinclude 에서
      ln –s platform_aix_ibm.GNU platform_macros.GNU
    • .bash_profile
      export ACE_ROOT=~/Library/ACE-5.7.9
      export LD_LIBRARY_PATH=$ACE_ROOT/ace
    • ACE_wrapper/ace 에서
      ../configure --enable-stdcpplib
      gmake buildbits=64
  • AIX
    • ACE_wrapper/ace 에서
      ln –s config-aix-5.x.h config.h
    • ACE_wrapper/include/makeinclude 에서
      ln –s platform_aix_ibm.GNU platform_macros.GNU
    • .profile
      export ACE_ROOT=$HOME/lib/ACE-5.5/ACE_wrappers
      export LIBPATH=.:$ACE_ROOT/ace
    • ACE_wrapper/ace 에서
      ../configure --enable-stdcpplib
      gmake buildbits=64 static_libs=1
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/06/22 16:24 2010/06/22 16:24
가끔은 이런 말도 안되게 쉬운 것을 잊어서 써 놓는 내가 너무 어이가 없다

// A B ~B ~A
class A
{
public:
	A()
	{	wcout << _T("A") << endl;	}
	~A()
	{	wcout << _T("~A") << endl;	}

};

class B : A
{
public:
	B()
	{	wcout << _T("B") << endl;	}
	~B()
	{	wcout << _T("~B") << endl;	}
};

int _tmain(int argc, _TCHAR* argv[])
{
	B b;
	return 0;
}
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/05/22 20:55 2010/05/22 20:55
Tree의 구성이
   1
2     3
과 같이 되어 있는 경우
//	123
void CAnyTree::Test2( CAnyNode* r_pNode )
{
	if ( _m_pNodeNull == r_pNode )
		return;

	TRACE1( "%d", r_pNode->nData );
	Test2( r_pNode->m_pNodeLeft );
	Test2( r_pNode->m_pNodeRight );
}

//	213
void CAnyTree::Test3( CAnyNode* r_pNode )
{
	if ( _m_pNodeNull == r_pNode )
		return;

	Test3( r_pNode->m_pNodeLeft );
	TRACE1( "%d", r_pNode->nData );
	Test3( r_pNode->m_pNodeRight );
}

//	231
void CAnyTree::Test4( CAnyNode* r_pNode )
{
	if ( _m_pNodeNull == r_pNode )
		return;

	Test4( r_pNode->m_pNodeLeft );
	Test4( r_pNode->m_pNodeRight );
	TRACE1( "%d", r_pNode->nData );
}
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/05/06 14:03 2010/05/06 14:03