Access Violation Error with wxDev
<p>Hi I am new to C++ coding, and I was given a a task that requires me to add 2 simple numbers together through using parameters.
I have checked my code with all my friends and it is fine, yet I am receiving the same error (There is an access violation in your program. Do you want to break it?)
In the output box its stopping at ("[New Thread 3120.0x1724]\n")</p>

<p>I am using wxDev-C++ and my pc is a windows7 64bit</p>

<p>My code:</p>

<pre><code>using namespace std;

  int main(int argc, char *argv[])

{

  int a,b;


  a = atoi (argv[1]);
  b = atoi (argv[2]);

  cout &lt;&lt; a+b&lt;&lt; endl;
  return 0;

}
</code></pre>
