Questions tagged [ceasar]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 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]) {...
user avatar
0 votes
1 answer
37 views

You seem to be missing these required files: caesar.c You are currently in: ~/pset1/ceasar, did you perhaps intend another directory?

It compiled but it cannot be checked!
user avatar
0 votes
1 answer
20 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 ...
user avatar
0 votes
1 answer
34 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 &...
user avatar
0 votes
2 answers
179 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 (...
user avatar
0 votes
1 answer
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'...
user avatar
0 votes
1 answer
119 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 ...
user avatar
0 votes
1 answer
84 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> ...
user avatar
  • 11