⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 large_file_support_test.cpp

📁 C++的一个好库。。。现在很流行
💻 CPP
字号:
//  Boost large_file_support_test.cpp  ---------------------------------------//

//  Copyright Beman Dawes 2004.
//  Use, modification, and distribution is subject to the Boost Software
//  License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)

//  See library home page at http://www.boost.org/libs/filesystem


#include <boost/filesystem/operations.hpp>
namespace fs = boost::filesystem;

#include <iostream>

int main()
{
  if ( fs::possible_large_file_size_support() )
  {
    std::cout << "It appears that file sizes greater that 2 gigabytes are possible\n"
                 "for this configuration on this platform since the operating system\n"
                 "does use a large enough integer type to report large file sizes.\n\n"
                 "Whether or not such support is actually present depends on the OS\n";
    return 0;
  }
  std::cout << "The operating system is using an integer type to report file sizes\n"
               "that can not represent file sizes greater that 2 gigabytes (31-bits).\n"
               "Thus the Filesystem Library will not correctly deal with such large\n"
               "files. If you think that this operatiing system should be able to\n"
               "support large files, please report the problem to the Boost developers\n"
               "mailing list.\n";
  return 1;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -