#include <stdio.h>
#include <boost/filesystem.hpp>
#include <iostream>
using namespace std;
using namespace boost::filesystem;
int main()
{
boost::filesystem::path path("/usr/local/include"); // random pathname
bool result = boost::filesystem::is_directory(path);
// printf(“Path is a directory : %d\n”, result);
cout<<path<<endl;
//cout<<(int)result<endl;
return 0;
}
bool类型的变量不能输出
最新推荐文章于 2024-04-08 14:43:45 发布