Other than the "/" role in the C++ #include statement

Asked 2 years ago, Updated 2 years ago, 38 views

In many projects, Look at the embedded statements, such as #include <abcd/efg.h>.

I think this means "get me the abcd or efg header file" ... which means I don't know the role of the "/" in the enclosure.

Please give me a link or explanation of the document that tells me the rules for the header file enclosure.

I don't understand myself why I can't find the description of the preprocessor.

include c++

2022-09-21 22:57

1 Answers

Inclusion is not like this.

C language is very simple.

Combine all the included files into one file and compile.

include < abcd/efg.h> is not "abcd or". It means the efg.h file in the abcd directory.


2022-09-21 22:57

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.