somefile.h의 이전 폴더 또는 somefile.h의 프로젝트 폴더를 검색한다는 의미입니까?#include "../somefile.h"의 의미는
3
A
답변
14
있는 디렉토리의 상위 디렉토리를 의미한다. 다음 디렉토리 구조가있는 경우 예를 들어
. manse the current directory.
.. means one level up from the current directory.
: : * 괜찬아 시스템 (그게이 협약은 AFAIK에서 온)에서
는home
|
code
| src
| someOtherDirectory
소스 파일은 home/code/src
에있을 수 있습니다 당신은 :
#include "../somefile.h"
소스 코드에 다음 컴파일러가 있습니다. home/code/
2
그것은 소스 파일 그것은 지시어가 발견 포함 곳은 소스 파일에 대한 상위 폴더에 somefile.h
을 찾아 의미에서.
3
그것은 "somefile.h"에 대한 상위 디렉토리에있는 지시어를 포함하는 파일이있는 디렉토리를 기준으로 보면 의미에서 somefile.h
를 찾습니다.
0
음, 소스 파일이 /src
에있는 경우, 다음 somefile.h
은 src
또는 /
관련 문제
- 1. PHP : include include
- 2. 의미는
- 3. 사용법 #include
- 4. 이 경고 메시지의 의미는 무엇입니까?
- 5. 큰 번호의 JSF 페이지 성능. include of page fragments : include
- 6. include 파일이 다른 include 파일의 함수를 호출 할 수 있습니까?
- 7. PHP5 include() 문제
- 8. javascript include function window.onload
- 9. #include <cmath>
- 10. php plugin/include issue
- 11. C++ include 및 Makefiles
- 12. #include, error LNK2005
- 13. PHP : include 함수가 차단되었습니다.
- 14. #include 사각형 만들기
- 15. #include "Demo.as"구문 오류
- 16. DomainService : 클라이언트의 .Include()
- 17. 에코 내에서 include 사용하기
- 18. #include <graphic.h>
- 19. C++ : #include 파일 검색?
- 20. #include in C
- 21. include() 전에 변수 사용
- 22. params to jsp : include
- 23. C++에 "include"해야합니다
- 24. include() 작동하지 않는다
- 25. main() 함수 안에서 #include
- 26. Activerecord 오류 .include? nil
- 27. joomla jdoc : include?
- 28. 새로 고침 PHP include()
- 29. include/sched.h 함수를 구현했습니다.
- 30. include()를 사용한 성능
이상이어야하며 이전 코드에서 사용할 수있는 경우 변경하지 마십시오. 상대 경로 (../whatever)를 사용하면 확장 성 문제가 심각합니다. –