I'm learning C++ for school and I'm confused on how to integrate command line arguments into my code
int n = 1;
int c = 0;
n = argv[1];
c = int(argv[2]);
findPrimes(n, c);
return 0;
}
That's my main function so far, but n = argv[1]; is a type error, and c = int(argv[2]); is a loss of data error. I know I'm rather far off, so any help to both improve my question and solve my problem is appreciated.