Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/148.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 在可执行文件中包含资源_C++_Xcode - Fatal编程技术网

C++ 在可执行文件中包含资源

C++ 在可执行文件中包含资源,c++,xcode,C++,Xcode,在Objective-C中,您可以使用NSBundle查找应用程序内资源的路径。我使用XCODE,但我正在C++中创建命令行工具。我需要访问我的项目中的文本文件。我该怎么做?我需要访问我的C++类中的“关于”文件。

在Objective-C中,您可以使用NSBundle查找应用程序内资源的路径。我使用XCODE,但我正在C++中创建命令行工具。我需要访问我的项目中的文本文件。我该怎么做?我需要访问我的C++类中的“关于”文件。