DrawingProcess
λ“œν”„ DrawingProcess
DrawingProcess
전체 방문자
였늘
μ–΄μ œ
Β«   2025/06   Β»
일 μ›” ν™” 수 λͺ© 금 ν† 
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
  • λΆ„λ₯˜ 전체보기 (968) N
    • Profile & Branding (25)
      • Career (18)
    • IT Trends (254)
      • Conference, Faire (Experien.. (31)
      • News (187)
      • Youtube (19)
      • TED (8)
      • Web Page (2)
      • IT: Etc... (6)
    • Contents (98) N
      • Book (67) N
      • Lecture (31)
    • Project Process (94)
      • Ideation (0)
      • Study Report (34)
      • Challenge & Award (22)
      • 1Day1Process (5)
      • Making (5)
      • KRC-FTC (Team TC(5031, 5048.. (10)
      • GCP (GlobalCitizenProject) (15)
    • Study: ComputerScience(CS) (72)
      • CS: Basic (9)
      • CS: Database(SQL) (5)
      • CS: Network (14)
      • CS: OperatingSystem (3)
      • CS: Linux (39)
      • CS: Etc... (2)
    • Study: Software(SW) (95)
      • SW: Language (29)
      • SW: Algorithms (1)
      • SW: DataStructure & DesignP.. (1)
      • SW: Opensource (15)
      • SW: Error Bug Fix (43)
      • SW: Etc... (6)
    • Study: Artificial Intellige.. (149)
      • AI: Research (1)
      • AI: 2D Vision(Det, Seg, Tra.. (35)
      • AI: 3D Vision (70)
      • AI: MultiModal (3)
      • AI: SLAM (0)
      • AI: Light Weight(LW) (3)
      • AI: Data Pipeline (7)
      • AI: Machine Learning(ML) (1)
    • Study: Robotics(Robot) (33)
      • Robot: ROS(Robot Operating .. (9)
      • Robot: Positioning (8)
      • Robot: Planning & Control (7)
    • Study: DeveloperTools(DevTo.. (83)
      • DevTool: Git (12)
      • DevTool: CMake (13)
      • DevTool: NoSQL(Elastic, Mon.. (25)
      • DevTool: Container (17)
      • DevTool: IDE (11)
      • DevTool: CloudComputing (4)
    • 인생을 μ‚΄λ©΄μ„œ (64)
      • λ‚˜μ˜ μ·¨λ―Έλ“€ (7)
      • λ‚˜μ˜ 생각듀 (42)
      • 여행을 λ– λ‚˜μž~ (10)
      • 뢄기별 회고 (5)

개발자 λͺ…μ–Έ

β€œ λ§€μ£Ό λͺ©μš”μΌλ§ˆλ‹€ 당신이 항상 ν•˜λ˜λŒ€λ‘œ μ‹ λ°œλˆμ„ 묢으면 μ‹ λ°œμ΄ ν­λ°œν•œλ‹€κ³  생각해보라.
컴퓨터λ₯Ό μ‚¬μš©ν•  λ•ŒλŠ” 이런 일이 항상 μΌμ–΄λ‚˜λŠ”λ°λ„ 아무도 λΆˆν‰ν•  생각을 μ•ˆ ν•œλ‹€. ”

- Jef Raskin

λ§₯의 아버지 - μ• ν”Œμ»΄ν“¨ν„°μ˜ λ§€ν‚¨ν† μ‹œ ν”„λ‘œμ νŠΈλ₯Ό 주도

인기 κΈ€

졜근 κΈ€

졜근 λŒ“κΈ€

ν‹°μŠ€ν† λ¦¬

hELLO Β· Designed By μ •μƒμš°.
DrawingProcess

λ“œν”„ DrawingProcess

[C++] C++ #include ν—€λ”νŒŒμΌ μˆœμ„œ
Study: Software(SW)/SW: Language

[C++] C++ #include ν—€λ”νŒŒμΌ μˆœμ„œ

2023. 1. 17. 12:35
λ°˜μ‘ν˜•
πŸ’‘ λ³Έ λ¬Έμ„œλŠ” 'C++ #include ν—€λ”νŒŒμΌ μˆœμ„œ'에 λŒ€ν•΄ 정리해놓은 κΈ€μž…λ‹ˆλ‹€.
C++ #include ν—€λ”νŒŒμΌ μˆœμ„œ κ΄€λ ¨ λ¬Έμ„œλ₯Ό μ°Ύμ•„λ³΄λ‹€λ³΄λ‹ˆ κ΅¬κΈ€μ˜ κ°€μ΄λ“œλŠ” μ œκ°€ 이전에 ν•˜λ˜ λ°©μ‹κ³ΌλŠ” μ •λ°˜λŒ€μ˜€μŠ΅λ‹ˆλ‹€. 정닡은 μ—†μ§€λ§Œ κ΄€λ ¨ λ‚΄μš©μ— λŒ€ν•΄ μ •λ¦¬ν•˜μ˜€μœΌλ‹ˆ μ°Έκ³ ν•˜μ‹œκΈ° λ°”λžλ‹ˆλ‹€.

1. Google Styleguide

For example, the includes in google-awesome-project/src/foo/internal/fooserver.cc might look like this

#include "foo/server/fooserver.h"

#include <sys/types.h>
#include <unistd.h>

#include <string>
#include <vector>

#include "base/basictypes.h"
#include "foo/server/bar.h"
#include "third_party/absl/flags/flag.h"

2. Dependency

For example, fooserver.cc might look like this

#include "foo/server/fooserver.h"

#include "base/basictypes.h"
#include "foo/server/bar.h"
#include "third_party/absl/flags/flag.h"

#include <string>
#include <vector>

#include <sys/types.h>
#include <unistd.h>

마무리

μœ„μ— 두 λ§ν¬λŠ” 헀더 μ„ μ–Έ μˆœμ„œ κ΄€λ ¨λœ λ‚΄μš©μž…λ‹ˆλ‹€. 헀더 μˆœμ„œλ₯Ό μ •ν•  λ•Œ 쒅속성을 μ™„ν™”ν•˜κΈ° μœ„ν•΄ μŠ€νƒ μ˜€λ²„ν”Œλ‘œμš° λ§ν¬μ—μ„œ μ œμ‹œν•œ 방법을 보편적으둜 μ‚¬μš©ν•˜λŠ” κ±° κ°™μŠ΅λ‹ˆλ‹€. ν•˜μ§€λ§Œ κ΅¬κΈ€μ—μ„œλŠ” ν•΄λ‹Ή 파일의 헀더λ₯Ό μ„ μ–Έν•œ 이후 μœ„μ—μ„œ μ–ΈκΈ‰ν•œ 방법과 μ •λ°˜λŒ€λ‘œ μ„ μ–Έν•˜κ²Œ λ©λ‹ˆλ‹€. ꡬ글 λ‚΄λΆ€μ—μ„œ ν”„λ‘œμ νŠΈλ₯Ό λΉŒλ“œν•  λ•Œ μˆœμ„œκ°€ λ‹€λ₯Έκ±΄μ§€ μ •ν™•ν•œ μ΄μœ λŠ” λͺ¨λ₯΄κ² μœΌλ‚˜, λΉŒλ“œμ˜ 쒅속성을 μƒκ°ν•œλ‹€λ©΄ μŠ€ν…μ˜€λ²„ν”Œλ‘œμš°μ—μ„œ μ–ΈκΈ‰ν•œ ν›„μžκ°€ λ§žμ„ 것 κ°™κΈ΄ ν•©λ‹ˆλ‹€.

μ°Έκ³ 

  • [StackOverFlow] C/C++ include header file order: https://stackoverflow.com/questions/2762568/c-c-include-header-file-order#:~:text=%22Thinking%20in%20C%2B%2B%22%20in%20particular%20mentions%20this%2C%20referencing%20Lakos%27%20%22Large%20Scale%20C%2B%2B%20Software%20Design%22
  • [Google Styleguide] cppguide: https://google.github.io/styleguide/cppguide.html#Self_contained_Headers:~:text=Include%20headers%20in%20the%20following%20order%3A%20Related%20header%2C%20C%20system%20headers%2C%20C%2B%2B%20standard%20library%20headers%2C%20other%20libraries%27%20headers%2C%20your%20project%27s%20headers.
λ°˜μ‘ν˜•
μ €μž‘μžν‘œμ‹œ λΉ„μ˜λ¦¬ λ³€κ²½κΈˆμ§€ (μƒˆμ°½μ—΄λ¦Ό)

'Study: Software(SW) > SW: Language' μΉ΄ν…Œκ³ λ¦¬μ˜ λ‹€λ₯Έ κΈ€

[Error Fix] JAVA μž¬μ„€μΉ˜ ν›„ 링킹 문제 (feat. JAVA 버전 λ³€κ²½)  (2) 2023.01.20
[JAVA] JVM vs JDK vs JRE? (java와 javac의 버전 및 μ„€μΉ˜κ²½λ‘œ μ•Œμ•„λ³΄κΈ°)  (0) 2023.01.19
[Rust] Rustκ°€ λœ¨λŠ” 이유 및 문법 νŠΉμ§•  (0) 2023.01.07
[IDE] VSCode Rust κ°œλ°œν™˜κ²½ μ„€μ • (MacOS M1)  (0) 2023.01.04
[Python] Python λ‹¨μœ„ ν…ŒμŠ€νŠΈ(Unit Test): unittest μ‚¬μš©λ²•  (2) 2022.12.08
    'Study: Software(SW)/SW: Language' μΉ΄ν…Œκ³ λ¦¬μ˜ λ‹€λ₯Έ κΈ€
    • [Error Fix] JAVA μž¬μ„€μΉ˜ ν›„ 링킹 문제 (feat. JAVA 버전 λ³€κ²½)
    • [JAVA] JVM vs JDK vs JRE? (java와 javac의 버전 및 μ„€μΉ˜κ²½λ‘œ μ•Œμ•„λ³΄κΈ°)
    • [Rust] Rustκ°€ λœ¨λŠ” 이유 및 문법 νŠΉμ§•
    • [IDE] VSCode Rust κ°œλ°œν™˜κ²½ μ„€μ • (MacOS M1)
    DrawingProcess
    DrawingProcess
    과정을 그리자!

    ν‹°μŠ€ν† λ¦¬νˆ΄λ°”