title: Change a constant variable without rebuilding C++
body: <p>I've developed a c++ project with visual studio 2015. The output of my project is a single executable that must have a unique ID for every client and this ID must be accessible inside the code. A simple approach is to just define a constant variable inside the code and change its value for every client and build it many times but I have a Linux server and I'm not sure I can build it simply because I've used many Winapi libraries. I was thinking that maybe there is another way to change or add some constant value to the output like manipulating the executable.
  For example:</p>
  
  <pre><code>#include &lt;string&gt;
  #include &lt;iostream&gt;
  #include &lt;Windows.h&gt;
  
  
  const std::string ID = "some unique ID";
  
  int main() {
      std::cout &lt;&lt; "Your ID: " &lt;&lt; ID &lt;&lt; std::endl;
      getchar();
      return(0);
  }
  </code></pre>