본문 바로가기

예전

(133)
[C++] static 멤버 변수, 함수 static 멤버 변수, 함수 ( http://blog.daum.net/coolprogramming/67 ) http://showmiso.tistory.com/95 에서 보통 함수의 지역 변수는 stack 영역에 저장되지만, static 으로 선언한 지역 변수는 메모리 영역 중 static영역에 저장되어 프로그램이 종료할 때까지 사라지지 않는다. 라고 했습니다. class A { int a; static int b; public: void func1() {} static void func2() {} }; int main() { A a; } class A의 객체 a를 선언하게 되면, A의 멤버 변수와 멤버 함수는 이 객체의 인스턴스 멤버 변수, 멤버 함수가 된다.하지만, static 멤버 변수와 stati..
[완료] 티스토리 초대장 배포'ㅅ '/ 저에게 티스토리 초대장이 10장 있네요~필요하신 분 댓글남겨주세용 'ㅇ'!!
opencv 2.4.5 vs2010 opencv_calib3d245d.libopencv_contrib245d.libopencv_core245d.libopencv_features2d245d.libopencv_flann245d.libopencv_gpu245d.libopencv_haartraining_engined.libopencv_imgproc245d.libopencv_legacy245d.libopencv_ml245d.libopencv_objdetect245d.libopencv_ts245d.libopencv_video245d.libopencv_highgui245d.libopencv_nonfree245d.libopencv_photo245d.libopencv_stitching245d.libopencv_videostab245d.lib 링커>입력C:..
[OPENGL] quaterinion http://content.gpwiki.org/index.php/OpenGL:Tutorials:Using_Quaternions_to_represent_rotation
[C] memmove와 memcopy [참고] http://cky5122.blog.me/80170431711http://www.borlandforum.com/impboard/impboard.dll?action=read&db=bcb_tip&no=826
[C++] reinterpret_cast reinterpret 의 뜻대로 캐스팅 하려는 것을 타겟의 타입으로 비트단위로 다시 재해석하는 casting 연산자이다. 다른 3개의 캐스팅 연산자가 처리하지 못한 일을 수행한다. reinterpret_cast는 관계가 없는 타입간의 변환을 한다. 하지만, const_cast의 기능인 상수성을 없애는 일은 하지 못한다. C연산자 만큼 casting이 자유롭지만 결과는 보장할 수 없다. [예제 1] #include using namespace std; int main(void) { int nValue = 100; char* pszTest = NULL; char* pszTest2 = NULL; pszTest = nValue;// 컴파일 에러 pszTest = static_cast(nValue);// 컴파일 ..
[C++] dynamic_cast dynamic casting 은 상속관계 내의 downcasting에 사용된다. [예제 1]#include using namespace std; class Animal { public: virtual void Go(void) { cout
[C++] const_cast const_cast 는 포인터 또는 참조의 const를 제거하는데 사용된다. [예제 1]#include using namespace std; int main(void) { const int* pConstTest = new int(10); int* pTest = const_cast(pConstTest);// pConstTest의 상수성이 제거되면서 pTest로 복사된다. *pTest = 200; cout