Command-line arguments in C++
<p>Many of my programs take in command-line arguments, one example is as follows:</p>

<pre><code>a.out [file-name] [col#] [seed]
</code></pre>

<p>Then if I want to use the arguments, I have nice, easy-to-use functions such as:</p>

<pre><code>atof(argv[..]) and atoi(argv[..])
</code></pre>

<p>I was wondering if such easy/simple functions exist for C++. I tried to simply do this:</p>

<pre><code>cin &gt;&gt; col_num &gt;&gt; seed;
</code></pre>

<p>But that doesn't work... It waits for an input (not command-line) and then outputs it...</p>

<p>Thanks</p>
