taking command line input in different ways
<p>How can one take command line argument by not using below structure ?</p>

<pre><code> int main ( int argc, char* argv ) {

 }
</code></pre>

<p>My question is really : how can I  take below input :</p>

<pre><code> ./executableProgramName   inputX inputY inputZ inputT
</code></pre>

<p>in any function ?</p>

<pre><code>in foo () {

 // what should I write so that I can get same effect 
}
</code></pre>

<ul>
<li>Are there any other way for taking command line input ?</li>
</ul>
