title: How to set specific elements of an array with minimal code C++
body: <p>I was wondering if there is an easy way to set more than one element of an array in a single line of code. For example, instead of:</p>
  
  <pre><code>int Array[10];
  Array[4] = 100;
  Array[7] = 100;
  </code></pre>
  
  <p>Is there some way to do something like the following?</p>
  
  <pre><code>int Array[10];
  Array[4 &amp; 7] = 100;
  </code></pre>
  
  <p>I know the above code doesn't work, but I can't really think of any other way to display my question. Anyhow, thanks in advance to anyone who would like to share their opinion :)</p>