C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[47140] 에러수정좀요...
최병기 [mall123] 805 읽음    2006-11-20 11:48
Region *Region::intersect_right(float split_coord, int current_dim)
{
    float l, r;

    r=_right[current_dim];
    l=_left[current_dim];

    if (split_coord<=l)
    {
        // split point lies to the left
        return new Region(_left, _right);
    }
    else
    {
        if (split_coord<=r)
        {
            // split point in interval
            // adjust left
            int i;
            float new_left[Region::dim];  <<<< 여기서 constant expresson required 에서 발생

            for (i=0; i<Region::dim; i++)   
            {
                new_left[i]=_left[i];
            }
            new_left[current_dim]=split_coord;
            return new Region(new_left, _right);
        }
        else
        {
            // interval lies to the left of split point

            return NULL;
        }
    }
}

웹에서 소스 긁어 온건데 자꾸 저 부분에서만 에러가 발생 하네요

고수님들 도와  주세요

+ -

관련 글 리스트
47140 에러수정좀요... 최병기 805 2006/11/20
47144     Re:에러수정좀요... 이현진 845 2006/11/20
47143     Re:에러수정좀요... 외랑 953 2006/11/20
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.