Questions tagged [ps2]

The tag has no usage guidance.

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

PS2 Vigenere not shifting upper and lowercase correctly

The output is almost completely correct aside from the ciphertext only corresponding to the first letter in the key. $ ./vigenere BaBa Plaintext:Hello IFMMP Do I need to completely rethink how I ...
user avatar
0 votes
1 answer
67 views

Vigenere error compiling: type int vs unsigned long

I keep getting this error when trying to compile my vigenere code: error: format specifies type 'int' but the argument has type 'unsigned long' [-Werror,-Wformat] printf("%c", (((plain[j] - 'A' + 1) ...
user avatar
  • 7
0 votes
1 answer
27 views

Misprinting the vignere cipher

When executed, my code prints out only 1 letter of the plaintext edited. Logically, it seems to be correct. Any help would be greatly appreciated. Thanks in advance :) # include <stdio.h> # ...
user avatar
1 vote
1 answer
374 views

Pset2 caesar unused variable

Hello and thanks for reading. I have created a few functions and at the moment I have no idea if my code works, so I just want to test to see if my code works but I am getting a weird error which I'...
user avatar
0 votes
3 answers
699 views

Assing argv[1] to a string variable (vigenere)

I'm stuck. There's a way to assign argv[1] to a string variable?, like: string keyword = argv[1];
user avatar
4 votes
2 answers
2k views

How to handle "lack of argv[1]"

I have my code set up so that if argc doesn't equal 2 the main function will return 1. Per the specs I thought. But I keep getting the error that I didn't "handle lack of argv[1]". if (argc != 2) ...
user avatar
1 vote
1 answer
145 views

CERT_NOT_YET_VALID

I'm trying to run check50 on my initials.c program for PS2 but it keeps saying "uploading" and then it returns the error CERT_NOT_YET_VALID. I get the same thing actually no matter what Pset I try ...
user avatar