Elements in an array will not change c++ : <pre><code>   void Remove(int x)//x is the number that i want to remove
    {
        for(int i=0;i&lt;CAPACITY;i++)//loop is to find the first case of x
        {
             if(x==data[i])//if x is in data 
             {
                  cout&lt;&lt;data[i]&lt;&lt;endl;//for debugging
                  data[i]==0; //change x to 0
                  cout&lt;&lt;data[i]&lt;&lt;endl;
             }
        }
     }
</code></pre>

<p>when i cout to see if it works the number that i wanted to delete is still there.
Here is the output before i run it when x=15:<br>
12,15,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 <br>
I used cout to see if there was a problem with the condition however it runs if x is in the array. 
Here is the output after, even if x is in the array:<br> 
12,15,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</p>
