상민 이가 프로그래밍중 사용하는 이디엄, 신기한 현상들을 모아놓는 페이지
ostream iterator의 신비
~cpp
ostream_iterator<int> out(cout , " ");
copy(vector1.begin(), vector1.end(), out); cout << endl;
헤더파일, VC++, MFC 상 세팅에서
~cpp
class Board{
pubilc:
static const int INIT_START;
void init(int aOption){
if ( aOption == INIT_START )...
// 내부에서 사용하면 error
// console 모드에서는 괜찮다.
}
};
const int Board::INIT_START = 0;
win32 상의 설정 파일 api
~cpp
case AMA:
if ( m_nTime < (int)::GetPrivateProfileInt("FindBomb", "AMA_Time", 999, ".\FindBomb.ini")){
return TRUE;
}
~cpp
%windir%\system32\gpedit.msc