class Base {

    int const constant;

public:

    virtual ~Base() = 0; // Makes this an abstract base class.

protected:

    Base(int c) : constant(c) { }

};


// Must be implemented!

Base::~Base() { }


class Derived : public Base {

    int const constant2;

public:

    //static const int constant1; //error C2057: 상수 식이 필요합니다.

    enum { constant1 = 1 };

    int aaa[constant1];

    Derived() : Base(42), constant2(2) { }

};

'language > C/C++' 카테고리의 다른 글

문자열 관련 함수  (0) 2018.09.11
데이터타입별 범위  (0) 2015.07.13
const  (0) 2012.05.21
Use 'static const' instead of '#define'  (0) 2011.12.06
2차원 배열이 더블포인터인가?  (0) 2010.11.10
블로그 이미지

란마12

,

1. 왼쪽 페달 분해

 

2. 오픈형 BB 분해시 오른쪽 (즉, 체인링쪽) 마개 (즉, 베어링 컵)
 

3. 후리휠 분해시 베어링 뚜껑

 

"스포크는 기다란 볼트이고 거기에 니플이 너트처럼 끼워져 있는 것"





http://blog.naver.com/twophase/110082678078

'yonjh > 자전거' 카테고리의 다른 글

프리휠 분해  (0) 2014.11.18
오픈형 BB정비  (0) 2014.11.15
자출사 필독모음  (0) 2014.11.15
블로그 이미지

란마12

,

MFC랑 CRT에 중복선언되어 발생되는 문제.

두 라이브러리를 모두 써야 한다면

프로젝트속성 -> 링커 -> 일반 -> 강제 파일 출력 -> /FORCE:MULTIPLE


MSDN의 다음 해결책은 별 도움이 되지 않았다.

http://support.microsoft.com/kb/148652/ko

블로그 이미지

란마12

,