Questions tagged [scramble]

The tag has no usage guidance.

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

Scramble.c lookup function found flag

So I've got the binary search function working for this problem, but I have no idea how to deal with the "found" flag portion of the problem. I think the idea is to add a "true" condition to the bool ...
0
votes
1answer
33 views

Assigning string

string s = get_string(); string s_lower = s; for (int i = 0, n = strlen(s); i < n; i++) { s[i] = toupper(s[i]); } for (int i = 0, n = strlen(s_lower); i < n; i++) ...
0
votes
1answer
65 views

Comparison Between Words

In this, I keep getting the error of comparison between pointer and integer?? My Code: (The List Of Errors Is At The Bottom) /** * scramble.c * * CS50 AP * Scramble * * Implements Scramble in ...
0
votes
1answer
91 views

Looking for guidance on why i am getting errors on scramble part 1 lookup function

so, when i try this code: bool lookup(string s) { int start = 0; int max = WORDS - 1; while (start <= max) { int middle = (start + max) / 2; if (strcmp(s, dictionary.words[...