create new C++ file in the subdirectory,-error No such file or subdirectory



But modify the header file path to “MyCharacter.h”
Successfully compiled program
微信图片_20240509114408
w’hy?
I don’t want to add new C++files every time to modify the header file path. How to solve this problem