[My program needs to accept input from the linux command line and organize it into arrays. a[0] is supposed to show the first integer input by the user. However I get a[0] = ./a.out. How would I remove ./a.out and have a[0] = the first integer?]
#include <iostream>
#include <string>
#include <cmath>
#include <stdlib.h>
using namespace std;
int main ( int argc, char *argv[] )
{
for(int i = 0; i < argc;++i)
{
printf("\nargv[%d]: %s\n",i,argv[i]);
}
}