What is the best way to include a header file? #include <> followed by #include "" or otherwise?

Possible duplicates:
what is the difference between #include <filename> and #include "file name"
C / C ++ includes file order / best practices

In what order should include statements be included in the header file and the source file in C ++? #include <> followed by #include "" or otherwise?

Also, should the header file of the source file precede all include statements in the source file?

+3
source share
5 answers

, , , , . . , , , .

, .

, (, [windows.h], MS, [windows.h]) / .

, .: -)

hth.,

+4

:

  • .
  • .
  • , , .
+6

, . #ncude "" , . #include <> , (, Linux) /usr/include simialr, .

+1

, - #include. , , , .

+1

, . , , .

0

Source: https://habr.com/ru/post/1786323/


All Articles