<div dir="ltr">thanks for the approach :o).<br><br>but i dont know the size of the vectors and i dont know the number of vectors in each of the two sets of vectors. (to be used in different stuff).<br><div class="gmail_quote">
<div>
<br>
i know the number of first n string arguments. so, when i start the
vector (all integers) part of argument, i intend using some two special
integer tags (say 999 and 9999) to delineate each vector and each set
of vectors. i think it works as ChucK reises an error in trying to
compare string and integers, but it can convert numeric strings (as numeric arguments
are understood) to integers and compare integers. i try it out soon.<br>
<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><div dir="ltr"><br><br>chuck test.ck:1:2:3:4:5<br>
<br><a href="http://test.ck/" target="_blank">test.ck</a> as follows:<br><br>int vect1[2];<br>int vect2[3];<br><br>for( 0 =&gt; int i; i &lt; me.args(); i++) {<br>&nbsp;&nbsp;&nbsp; //fill vect1<br>&nbsp;&nbsp;&nbsp; if(i == 0) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for( 0 =&gt; int i; i &lt; vect1.cap(); i++) {<br>


&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Std.atoi(me.arg(i)) =&gt; vect1[i];<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; //fill vect2<br>&nbsp;&nbsp;&nbsp; if(i == 2) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for( 0 =&gt; int i; i &lt; vect2.cap(); i++) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Std.atoi(me.arg(i+2)) =&gt; vect2[i];<br>


&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>}<br><br>for(0 =&gt; int i; i &lt; vect1.cap(); i++) {<br>&nbsp;&nbsp;&nbsp; &lt;&lt;&lt;&quot;vect1&quot;, vect1[i]&gt;&gt;&gt;;<br>}<br><br>for(0 =&gt; int i; i &lt; vect2.cap(); i++) {<br>&nbsp;&nbsp;&nbsp; &lt;&lt;&lt;&quot;vect2&quot;, vect2[i]&gt;&gt;&gt;;<br>


}<br><br><a href="http://test.ck" target="_blank">test.ck</a> outputs:<br>vect1 1 <br>vect1 2 <br>vect2 3 <br>vect2 4 <br>vect2 5<br></div>
</div>
<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br></div>