Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The problem set for Week 2 continues with the C programming language used in problem set 1.
1
vote
Accepted
Pset2, Vigenere Prompt Problem, 'Rejects "Hax0r2" as keyword, expected output, not a prompt ...
There's a small mistake in the way you have written the code. You are expected to first check whether the keyword is valid or not. If it turns out to be valid, only then you must prompt user for input …
2
votes
Accepted
Having trouble with CS50 Vigenere Problem - Don't really know what is wrong
There's a small mistake in the elseif statement under if condition -
else if (isupper(s[i]) && islower(argv[1][j]))
{
printf("%c", ((((s[i] - 65) + (argv[1][j%kl] - 97)) % 26) + 65) ) …
0
votes
Accepted
vigenere set key values not working
I think the mistake lies in the "if condition" in your for loop. The condition is islower(k[i]), which is seems to be wrong because the array is not initialised and must be containing some garbage val …