![]() If the key is invalid (as by not containing 26 characters, containing any character that is not an alphabetic character, or not containing each letter exactly once), your program should print an error message of your choice (with printf) and return from main a value of 1 immediately. ![]() If your program is executed without any command-line arguments or with more than one command-line argument, your program should print an error message of your choice (with printf) and return from main a value of 1 (which tends to signify an error) immediately. The key itself should be case-insensitive, so whether any character in the key is uppercase or lowercase should not affect the behavior of your program. Your program must accept a single command-line argument, the key to use for the substitution. ![]() Implement your program in a file called substitution.c in a ~/pset2/substitution directory. This is the instructions (cs50 substitution problem)ĭesign and implement a program, substitution, that encrypts messages using a substitution cipher. When I run the code using the following key, extra characters are outputted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |