Skip to main content
2 votes
Accepted

PSet 2: Caesar, validating key

The problem lies here: if(isdigit(argv[1][i] != true) You need to fully understand how isdigit() works, specifically the return value, and the numeric value of true. The is() family of functions ...
Cliff B's user avatar
  • 69k
1 vote

Key looping in Vigenere

From Final Steps in the spec: Remember also that every time you encipher a character, you need to move to the next letter of k, the keyword (and wrap around to the beginning of the keyword if ...
DinoCoderSaurus's user avatar
1 vote
Accepted

vigenere problem with key, the program sees the key as only one number

There are a number of issues here. First, the statement if (argc == 2 && isalpha(buk)) is redundant. If argc isn't 2, the program would have exited earlier. Similarly, isalpha(buk) was also ...
Cliff B's user avatar
  • 69k
1 vote
Accepted

Vigenere working unless there's an 'a' in the key. Please help!

Interesting interaction between different parts of the code. When there is an 'a' or an 'A' in the key it will fail because of a unique interaction in your code. The code first converts all of the key ...
Cliff B's user avatar
  • 69k

Only top scored, non community-wiki answers of a minimum length are eligible