Questions tagged [validatingthekey]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
48 views

How do I check that every character of an array is a digit and only print out the string if all the chars are digits?

So, in Caesar when validating the key they asked to check if all the characters in the command line argument provided are digits and only printout "Success" and the digits as an integer if ...
0
votes
1answer
91 views

CS50 Ceaser Validating Key

Trust you are well, I apologize for asking a question that's been asked before but I've been stuck on this for a while without any luck and finally realized I need help. I've attached my code of CS50 ...
0
votes
1answer
364 views

PSet 2: Caesar, validating key

I'm struggling with the output to the "Validating Caesar's Key" part of PSet 2. First-timer here, like many, and appreciative of any insight. When I compile and then run this program with "./caesar 2",...
0
votes
1answer
1k views

Problem with Validating the Key for Caesar

So I´ve been stumped on this for hours. I´ve used a loop and "isdigit" to check each character of argv[1] to make sure its a numerical digit, yet it is not checking properly. As my code is now if the ...
0
votes
2answers
1k views

CS50-pset2-Validating the Key-how to check or reject the user's input is decimal or not

Excuse me, When I practice the pset2 program, I follow the step at 'Validating the Key'. But I have the problem like below code, I want to compiler and output look like as $ ./caesar 20 Success ...