Skip to main content

Questions tagged [ceasar]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers

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]) {...
Aamon Van's user avatar
0 votes
1 answer

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!
Aisha s's user avatar
0 votes
1 answer

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 ...
Sahil Tuladhar's user avatar
0 votes
1 answer

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 &...
Arrhan BHATIA's user avatar
0 votes
2 answers

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 (...
Ros Fortaleza's user avatar
0 votes
1 answer

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'...
SuperZumo's user avatar
0 votes
1 answer

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 ...
nopeudon's user avatar
0 votes
1 answer

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> ...
Huynq's user avatar
  • 11