How I come to tackle the hacker Edition of pset one... My comments might not be that straight forward but feel free to comment. I opted not to use the string class for the return type for the longToString() because I was getting issues when trying to do the conversion in the calculation for the digits. ################################################################################# #include <stdio.h> #include<cs50.h> #include <string.h> //method to get number of digis input but the user int lengthString(long long int cc); //Function to check the if the length is a valid length to proceed bool isValidLength(int numOfDigits); //Fuction that will use Luhns algorithim to check validity bool isValid(int numOfDigits, long long int cc); //Function that returns the card type int cardType(int numOfDigits, long long int cc); //function that converts the card to char array char* longToString(int numOfDigits, long long int cc); /...
"Emancipate yourself from mental slavery, none but ourselves can free our minds!" - Bob Marley