2010/10 썸네일형 리스트형 [C++]Critical Section class CS_Guard { public: CS_Guard() { InitializeCriticalSection(&m_cs); ::EnterCriticalSection(&m_cs); } ~CS_Guard() { ::LeaveCriticalSection(&m_cs); DeleteCriticalSection(&m_cs); } private: CRITICAL_SECTION m_cs; }; 더보기 [고급씨언어] delete 처리 하기 위한 goto 이용법 28 void foo() 29 { 30 FILE * fp = fopen("1.txt","r"); 31 if(fp == NULL) 32 { 33 goto delete_ok; 34 35 } 36 FILE * fp2; 37 if(fp2 == NULL) 38 { 39 goto delete_fp1: 40 } 41 42 FILE * fp3; 43 44 45 delete_fp2: 46 fclose(fp); 47 delete_fp1: 48 fclose(fp1); 49 delete_ok: 50 return ; 51 } 더보기 [안드로이드] Gesture Like it or not touch screens are becoming part of both developers and users life, i mean dont think i would buy one of Those uncool phones without touchscreen unless i really have to, would you? but the important point is that what is the Touchscreen use if applications doesn't support touchscreen interaction, in other words who is really gonna pay for a ,say, Picture management application if i.. 더보기 이전 1 다음