|
구조체 선언을 함수위로 올리시면 될거 같군요.
김학수 님이 쓰신 글 :
: //---------------------------------------------------------------------------
: #ifndef SubH
: #define SubH
: #include <Classes.hpp>
: #include <Controls.hpp>
: #include <StdCtrls.hpp>
: #include <Forms.hpp>
: #include <DB.hpp>
: #include <DBCtrls.hpp>
: #include <DBTables.hpp>
: #include <DBGrids.hpp>
: //---------------------------------------------------------------------------
: Coordinates GetAnotherX(double XA, double YA, double XB, double YB);
:
: typedef struct {
: double X;
: double Y;
: } Coordinates;
: #endif
:
: 위와 같이 Coordinates 라는 Struct를 리턴하는 GetAnotherX라는 메소드를 만들었는데
: 헤더 파일에 위와같이 선언하면 않됩니까?
: 선언하는 방법이 틀린것 같은데 가르쳐 주시면 고맙겠습니다.
|