开发者

Not able to use Directory::getFiles() directly in the code

开发者 https://www.devze.com 2023-02-23 03:59 出处:网络
I am trying to get few files from a path of specific pattern and for this I am using the command below which is giving me an error:

I am trying to get few files from a path of specific pattern and for this I am using the command below which is giving me an error:

std::vector<std::string> cppFiles;
cppFiles = System::IO::Directory::GetFiles(path, "*.cpp" );

Error is on "System" and it says:- name followed by :: must be a class or namespace name.

I even tried putting using namespace System, still I am getting the same error on namespace as well.

Am开发者_JAVA技巧 I missing something?


You are obviously not including the relevant header.

0

精彩评论

暂无评论...
验证码 换一张
取 消