My code works for a single word, but if I try to input a sentence, it output the encrypted text without any spaces or punctuation. How to use the function "ispunc" to solve the problem?
1 Answer
Maybe instead of that, you should be thinking about what the code should do if something is not alpha, when not to encode something, and what to do with a character when it isn't encoded, regardless of what kind of non-alpha it is.
-
-
one more thing: my code works but when I ran check50 i get this message: sandbox.cs50.net/checks/38ed3e235471452e9be03242dd36cfe2 Commented Aug 5, 2016 at 22:50
-
maybe you might want to go back and read the pset instructions very carefully. ;-)– Cliff BCommented Aug 5, 2016 at 23:09