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")
I am using wxDev-C++ and my pc is a windows7 64bit
My code:
using namespace std;
int main(int argc, char *argv[])
{
int a,b;
a = atoi (argv[1]);
b = atoi (argv[2]);
cout << a+b<< endl;
return 0;
}