Questions tagged [ceasar]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

I've run ceasar and i get a segmentation fault, but the debugger is working through perfectly and giving me the result i need. can you tell me why?

#include <cs50.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h> int main (int argc, string argv[]) { if (argc <2 || ! isdigit(argv[1]) {...
0
votes
1answer
17 views

pset2 ceasar ( why does it keeps showing " expected "ciphertext: yx...", not "ciphertext: yx..."

#include <stdio.h> #include <cs50.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int main(int argc , string argv[]) { if (argc == 2) { if ...
0
votes
1answer
22 views

pset2 (ceasar) - isdigit function not working correctly returns "expected expression" error

I don't know why I am getting an error on my isdigit() function, it seems correct to me. #include <stdio.h> #include <cs50.h> #include <stdlib.h> #include <string.h> #include &...
0
votes
2answers
168 views

Please help me, validating the key in this Caesar problem

#include <cs50.h> #include <stdio.h> #include <string.h> #include <ctype.h> int main(int argc, string argv[]) { if (argc == 2 && isdigit(*argv[1])) { for (...
0
votes
1answer
23 views

Pset2: Caesar help. How to pass-through numbers?

I'm trying to make my script NOT shift if the character in the string is a number. Isalpha can do the trick but I just can't fathom in my mind how to achieve a passthrough. Maybe my frame of mind isn'...
0
votes
1answer
115 views

Pset2 Cesar- Question on Converting Strings

// change values bigger than 26 to one smaller than 26 int key = atoi(argv[1]); while (key > 26) { key = key - 26; } With respect to the part of my code as above, I faced problems accessing ...
0
votes
1answer
83 views

Problem with ceasar

I really don't want to ask for this since this's like asking you guys to do my homework for me but what did I do wrong here? #include <stdio.h> #include <cs50.h> #include <string.h> ...