Questions tagged [cs50-vigenere]

The tag has no usage guidance.

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

vigenere pset2 spaces

I'm having issues figuring out how to ignore the spaces in the user string when changing to ciphertext. I thought the isalpha() check accounted for that but I guess not. Any help would be ...
user avatar
  • 3
0 votes
1 answer
52 views

Vigenere unexpected output after length of key

I feel like I'm pretty close with this one, but I can't find where the wraparound is messing up. Any idea where I'm going wrong? Expected: $ ./vigenere ABC plaintext: HELLO ciphertext: HFNLP Actual:...
user avatar
0 votes
1 answer
97 views

vigenere.c done incorrectly, or check50 broken? [duplicate]

I completed vigenere.c per the spec for pset2, and it seems to be working fine. However, when I use check50, this is the result I get. So it says everything is fine, however when it checks how the ...
user avatar
  • 3
0 votes
1 answer
80 views

CS50 Vigenere code gives incorrect when detecting a non-alphabet char for plaintext

My vigenere code works fine when a single char or string is entered, however as soon as it detects a space in plaintext it gives wonky values. Please help! #include <cs50.h> #include <stdio....
user avatar
0 votes
1 answer
49 views

i always get the output proper but check50 shows error pls help!

//initializing libraries #include <stdio.h> #include <cs50.h> #include <string.h> #include <ctype.h> int main(int argc, string argv[]) { // Variable declarations bool ...
user avatar
0 votes
1 answer
78 views

Please correct my mistakes in my vigenere code

Here's my code. I get lot's of errors from the compiler. Can you simply fix explicit errors that I made? So that I am on the right track and then I can keep fixing. #include <cs50.h> #include &...
user avatar
0 votes
2 answers
49 views

Pset2: Vigenere

Been able to write code to encrypt text (vigenere encryption). But one question intrigues me. If I use if (!isalpha(s[i])) encryption does not produce expected output for, for example, "...
user avatar
0 votes
1 answer
25 views

Pset2 - Receiving different outputs each time I run my code- Vigenere.c

I'm working on Vigenere.c, and while my code seems to be mostly correct, I keep having very strange outputs which are not even the same every time I run the program (e.g. If I run my code one time ...
user avatar
0 votes
2 answers
159 views

cs50 vigenere output error

Man I thought I had it! I've been working on the Vigenere problem and have gotten close but keep getting this error when I check. Thoughts? :) vigenere.c exists :) vigenere.c compiles :) encrypts &...
user avatar
0 votes
1 answer
95 views

Problem Set 2: Vigenere's Cipher

I implemented the check50 to check the correctness of my vigenere's cipher program and received the following prompt: :( rejects "Hax0r2" as keyword \ expected output, not a prompt for input What ...
user avatar
0 votes
1 answer
160 views

pset 2, vigenere, created cipher function, but had to subtract 19?

I have been banging my head as to why when I run vigenere with bacon argument, Meet me at the.....etc, never turns out the same as on the CS50 page, but always the same encryption values on my side. ...
user avatar
  • 3
0 votes
2 answers
76 views

cs50 pset 2 Vigenere error with the CAPS of the keyword

what's up? I'm having an issue debugging this code. So for I have been working on Vigenere 2 days (-school time) and works great except for keywords with capitalized letters like BaZ, BAR... I'm ...
user avatar