C++ programming questions
C++ Programming Questions - Table of Contents
1. The header file cannot be referenced in C++ Visual Studio
The problem is as shown in the figure below: The system prompts that the source file cannot be opened The
project directory is as follows: The header file contains circle.h and point.h
Solution: Right-click the project name, click "Properties" and
select "C/C++" drop-down in "Configuration Properties" List, then open the "General" tab, add the "Additional Include Directory"
path and select the folder where the header file to be imported is located, and click OK.
After the above operations are completed, the header file can be imported normally.