title: How to make a static class to reference string variables with C++?
body: <p>So I am trying to make a general C++ static that just holds string variables. I am using Unreal Engine 4 in this project. <strong>I have a working solution, but am looking to see if what I do in C# can be done in C++.</strong></p>
  
  <p>Working Solution (C++):
  DFControllerGameModeBase.h</p>
  
  <pre><code>#pragma once
  
  #include "CoreMinimal.h"
  #include "GameFramework/GameModeBase.h"
  #include "DFControllerGameModeBase.generated.h"
  
  
  #define MoveForwardInput        "MoveForward"
  
  </code></pre>
  
  <p>Implementation:</p>
  
  <pre><code>#include "DFControllerGameModeBase.h" 
  
  void ADFCharacter::Play(){
  .....
  
  string text = MoveForwardInput;
  
  }
  </code></pre>
  
  <p><strong>However this is what I do in C# with Unity:</strong></p>
  
  <pre><code>using System;
  
  namespace Assets.Scripts.Helpers
  {
  
      public static class Utilities
      {
          public static string MoveForward = "MoveForward";
      }
  }
  </code></pre>
  
  <p>Implementation:</p>
  
  <pre><code>using Assets.Scripts.Helpers;
  
  void Play(){
  
  string text = Utilities.MoveForward;
  
  }
  
  </code></pre>