// global.h
class g_{
public:
  static void setSexFriend(string s) { SexFriend = s; }
private:
  static string SexFriend;
};

// main.cpp
static string g_::SexFriend;

void hoge(){
  g_::SexFriend("綾子11歳")
}