我对下面的代码有疑问:
程序设置.h
#pragma once
static class ProgrammSettings
{
public:
static int fd;
};
设置.cpp
#include "ProgrammSettings.h"
static bool LoadSettings()
{
ProgrammSettings::fd = 2; // here error Unresolved symbol!!
return true;
}
我做错了什么?谢谢!