@Danil2004
Пишу на C++, использую QT (Учусь)

С++ В чем отличие #include «*» и #include?

Сколько не смотрю на код, бывает вижу
#include "*"
#include <*>

В чем различие того что я пишу <*> или "*"?
  • Вопрос задан
  • 612 просмотров
Решения вопроса 2
@Mercury13
Программист на «си с крестами» и не только
Первое — это include собственного заголовка, то есть искать его в рабочем каталоге, в дополнение к стандартным каталогам компилятора.

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.
Ответ написан
Комментировать
DanielDemidko
@DanielDemidko
Программист
include "" - файлы вашего проекта
include <> - файлы компилятора, системных библиотек, языка
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы