From the command line, I passed a value like this:
a.out -seed 3333333333
But when I did:
unsigned int seed;
seed = atoi(argv[2]);
cout << seed;
it just puts out the decimal equivalent of 0x7fffffff; I cannot change the internal variable to int. Any hints?
a.out -seed 3333333333
But when I did:
unsigned int seed;
seed = atoi(argv[2]);
cout << seed;
it just puts out the decimal equivalent of 0x7fffffff; I cannot change the internal variable to int. Any hints?
Comment