This is about Problem Set 2, week 3, caesar.c. My code doesn't store the int I get from the user via GetInt() in argv. Consequently, argc stays at value 1 and the one command line argument given by the user is refused, which is not what I want. Why isn't the input stored?
int main(int argc, string argv[])
{
int old_value, new_value;
char new_string;
bool upper = 0;
int i = GetInt();
if (argc != 2)
{
printf("Enter an integer (and nothing else) please: ");
return 1;
}
else
{
int k = atoi(argv[1]);
printf("Enter some plaintext to encrypt: ");
...