D
D
Danil Asadullaev2018-06-01 14:01:19
Qt
Danil Asadullaev, 2018-06-01 14:01:19

C++ What is the difference between #include "*" and #include?

No matter how much I look at the code, sometimes I see

#include "*"
#include <*>

What is the difference between what I write <*> or "*"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2018-06-01
@Danil2004

The first is to include your own header, that is, look for it in the working directory, in addition to the compiler's standard directories.
This option 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).
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.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question