c++ Update static int
<p>i am trying to update static int</p>

<p><strong>test.h</strong></p>

<pre><code>static int Delay = 0;
void UpdateDelay();
</code></pre>

<p><strong>test.cpp</strong></p>

<pre><code>#include "test.h"

void UpdateDelay(){
Delay = 500;
}
</code></pre>

<p><strong>Main.cpp</strong></p>

<pre><code>    #include "test.h"

    int main(){
    UpdateDelay();
    std::cout &lt;&lt; Delay &lt;&lt; std::endl;
    return 0;

}
</code></pre>

<p>output should be : 500
but it shows : 0 </p>

<p>Thx</p>
