//싱글톤 클래스 #include "stdafx.h" #include class A { public: static A *Create(); static A *GetSingleTone() { return ms_pkThis; } private: static A *ms_pkThis; }; A *A::Create() { if ( ms_pkThis ) return ms_pkThis; // ms_pkThis 있으면 반환 없으면 새로 생성 ms_pkThis = new A; return ms_pkThis; } A *A::ms_pkThis = 0; int _tmain(int argc, _TCHAR* argv[]) { A *p = A::Create(); printf("Addr : %x\n" ,p); p = A::Create..
공부 이야기
2009. 1. 30. 00:02
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- jsp
- Free Coupon
- ndsl
- 젤다의 전설
- 스포어
- 아이폰
- 웃기는 사진
- 티스토리달력2011
- CNN Student News
- 2011사진공모전
- 군대이야기
- 겨울
- Project Diet
- 동물의숲
- 슈퍼마리오 RPG
- 티스토리달력2010
- 가을
- NDS
- Wii GAME
- Spore
- 오라클
- oracle
- 동유럽
- 3분 영어 위클리
- NDS GAME LIST
- C/C++
- 게시판
- NDSi
- DLC
- 야생의 숨결
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함