Remember that a character digit - '0' results in a value 0.9, so the conversion, digit by digit is easy. Suggest reading the digits as a string rather than as a long long int. So that assumption should not be in the code logic. Not all credit cards use 16 digits, but rather varies by which vendor is producing the card. The posted code fails to take into account the security code found on the back of the credit card. so the posted code logic is (probably) not correct. Which credit card company is, normally, contained in the left digits of the card number, not in the right digits. The cs50.h that I have does not have a function: get_long_long(), so, for me, the code does not compile. I know talent is a myth and all, but based on this code, do you think I'm any good at this? The question is do you think I can code? Become a programmer ? I mean do I have the right mind for it ? ( since this is my first without guide code )īTW, I have no prior programming experience (only read some pages of K
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |