If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
要向项目添加现有源文件,请在“C/C++ Projects(C/C++ 项目)”选项卡中右键单击项目名称,并选择“Add Files to Project(将文件添加到项目)”,将源文件复制到项目目录。也可以选择“Link Files to Project(将文件链接到项目)”来创建文件引用,这样可以将文件保留在其原始目录中。