jharvard@appliance (~/Dropbox/pset2): ./caesar 13
Be sure to drink your Ovaltine!
Or fher gb qevax lbhe Binygvar!
This assignment required to execute like the above. However, if using int main (int argc, string argv[])
, the key and the plaintext need to be entered immediately after the program name. How could I set to enter the program name + key only in Line 1 and then the plaintext in Line 2? In this case this can lead to the output in Line 3 which is what the quoted error message is about I believe.
Grateful if some guidance available as not good at this argv function. Thanks.