1
vote
Accepted
toupper not executing
toupper(s[i]-65)
If you give that 'a', then 'a' - 65 is 32. toupper(32) will simply be 32, since 32 is not an ascii char.
Be careful with your ()
1
vote
Accepted
Pset 2 vigenere uppercase the cipher
Look at what this line of code does:
string c = uppercase(argv[1]);
It declares c as a string, or more specifically, a pointer to a character string. The function uppercase() that you declared ...
1
vote
Accepted
pset2 vigenere case
Once I fixed a few compile errors, the code works fine except for not handling validating various input errors. As for being excessively long, not really. There are 4 possible cases, which you handle....
1
vote
vigenere use toupper on key, save in new string
The toupper() part is working fine, but based on what you're trying to do, you have two issues and a misconception.
Issue 1: You are storing the result of the subtraction in an int called keyvalue, ...
Only top scored, non community-wiki answers of a minimum length are eligible