Relative Content

Tag Archive for ccs50

CS50 Substitution tolower is capitalizing my A characters

Doing week 2 of CS50.Its supposed to be a ciphering algorithm. Ive gotten to the point where it ciphers my code BUT for some reason when I try testing my code and using my name, it doesnt make my second A char a lower cased a.

Unable to get the intended result despite code compiling

#include <cs50.h> #include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> bool only_digits(string); int main(int argc, string argv[]) { //Get key// //Preserve capital/lower case letter, spaces, punctuations// //Print out usage message if user don’t comply (two arguments)// if(argc != 2) { printf(“Usage: ./caesar keyn”); return 1; } else { return 0; } // Print out usage […]