是的,我已经用谷歌搜索了我的问题。这是我当前的代码:
#pragma once
#include "GUI\GUI.h"
#include <filesystem>
using namespace ui;
namespace fs = std::experimental::filesystem;
class Settings
{
public:
void Initialize(MenuMain* pMenuObj);
void SaveSettings(const std::string& strFileName, MenuMain* pMenuObj);
void LoadSettings(const std::string& strFileName, MenuMain* pMenuObj);
private:
void UpdateDirectoryContent(const fs::path& fsPath);
inline fs::path GetFolderPath();
fs::path fsPath{};
std::vector<std::string> vecFileNames{};
public:
/* All our settings variables will be here *
* The best would be if they'd get *
* initialized in the class itself. */
bool bCheatActive = true;
bool bMenuOpened = false;
bool bBhopEnabled = true;
bool bShowBoxes = true;
bool bShowNames = true;
bool bShowWeapons = true;
};
extern Settings g_Settings;
在namespace fs = std::experimental::filesystem
和name must be followed by "::" must be class or namespace
发生错误
因此vs社区说我需要#include <filesystem>
,但已经在那里。
我不确定在这里做什么。就像我说的那样,我在Google周围搜索,还没有找到任何可以解决我问题的信息。