I know that this must be a scope problem, but I've tried everything at this point. I just can't seem to save k from argv[1].
int main(int argc, string argv[])
if argc == 2
int k = atoi(argv[1]);
else
return 1;
If i now try to print k, it doesn't work. What is the best way to save this output, k? Ive watched the shorts on scope, return, etc. I'm just incredibly confused at this point. A hint would be great.