I need some help with my debugging for the caesar cipher. I get these errors.
[image replaced with actual errors produced by the code that follows]
caesar.c:25:17: error: incompatible integer to pointer conversion assigning to
'string' (aka 'char *') from 'int' [-Werror,-Wint-conversion]
key = atoi(argv[1]);
^ ~~~~~~~~~~~~~
caesar.c:41:54: error: invalid operands to binary expression ('string'
(aka 'char *') and 'int')
printf("%c" , ((plaintext[i]-97+ key)%26-97));
~~~~~~~~~~~~~~~~~~~~~~^~~
caesar.c:45:54: error: invalid operands to binary expression ('string'
(aka 'char *') and 'int')
printf("%c" , ((plaintext[i]-65+ key)%26-65));
~~~~~~~~~~~~~~~~~~~~~~^~~
I just need to know how to solve these errors.
Here's my code below:
[code removed per academic honesty policy]