backup de julho
[h2N7SspZmY.git] / data / cache / 2 / 2681f7e136f6a8468c47785497609b5a.code
blob8147db61cecfc8508c9fabf756db694dc0226aae
1 <span class="coMULTI">/* [index] = value */</span>
2 <span class="kw4">int</span> a<span class="br0">&#91;</span>6<span class="br0">&#93;</span> <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="br0">&#91;</span>4<span class="br0">&#93;</span> <span class="sy0">=</span> 29<span class="sy0">,</span> <span class="br0">&#91;</span>2<span class="br0">&#93;</span> <span class="sy0">=</span> 15 <span class="br0">&#125;</span><span class="sy0">;</span> <span class="co1">// a = { 0, 0, 15, 0, 29, 0 };</span>
3 &nbsp;
4 <span class="coMULTI">/* [i] = v1, v2, v3 &lt;-&gt; [i] = v1, [i + 1] = v2, [i + 2] = v3 */</span>
5 <span class="kw4">int</span> a<span class="br0">&#91;</span>6<span class="br0">&#93;</span> <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="br0">&#91;</span>1<span class="br0">&#93;</span> <span class="sy0">=</span> v1<span class="sy0">,</span> v2<span class="sy0">,</span> <span class="br0">&#91;</span>4<span class="br0">&#93;</span> <span class="sy0">=</span> v4 <span class="br0">&#125;</span><span class="sy0">;</span> <span class="coMULTI">/* &lt;-&gt; */</span> <span class="kw4">int</span> a<span class="br0">&#91;</span>6<span class="br0">&#93;</span> <span class="sy0">=</span> <span class="br0">&#123;</span> 0<span class="sy0">,</span> v1<span class="sy0">,</span> v2<span class="sy0">,</span> 0<span class="sy0">,</span> v4<span class="sy0">,</span> 0 <span class="br0">&#125;</span><span class="sy0">;</span>
6 &nbsp;
7 <span class="coMULTI">/* [i ... j] = v &lt;-&gt; [i] = v, [i + 1] = v, &quot;...&quot;, [j] = v */</span>
8 <span class="kw4">int</span> a<span class="br0">&#91;</span>6<span class="br0">&#93;</span> <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="br0">&#91;</span>1 ... 4<span class="br0">&#93;</span> <span class="sy0">=</span> 1 <span class="br0">&#125;</span><span class="sy0">;</span>          <span class="coMULTI">/* &lt;-&gt; */</span> <span class="kw4">int</span> a<span class="br0">&#91;</span><span class="nu0">6</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">0</span> <span class="br0">&#125;</span>
9 &nbsp;
10 <span class="coMULTI">/* also works with chars */</span>
11 <span class="kw4">int</span> isWhitespace<span class="br0">&#91;</span><span class="nu0">256</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="br0">&#91;</span><span class="st0">' '</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'<span class="es1">\t</span>'</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'<span class="es1">\n</span>'</span><span class="br0">&#93;</span> <span class="sy0">=</span> 1 <span class="br0">&#125;</span><span class="sy0">;</span>