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 |
speller.c is one of the files that make up Problem Set 5, but it is already written by CS50 Staff and you may not alter it! Instead, you must implement your solution by altering three other component files: dictionary.c, dictionary.h, and Makefile.
2
votes
3
answers
2k
views
what does `while ((c = fget(fb)) != EOF && isalpha(c))` does?
what does that line do in speller.c?
while((c = fget(fb)) != EOF && isalpha(c));
1
vote
1
answer
37
views
Appending function failed
I tried to implement a function to append nodes to a linked list using the hints on cs50 study but all i get is (runtime error). Here's my code
#include <stdio.h>
#include <stdlib.h>
#define SIZE 1 …
0
votes
1
answer
98
views
overwriting nodes in load function
i have a problem in my load function. if i load the word (cat),it loads successfully. but when i load the word (caterpillar) after that,gdb shows me that the first 3 letters are allocated again . the …
0
votes
2
answers
523
views
a problem with declaring root
= 3)
{
printf("Usage: speller [dictionary] text\n");
return 1;
}
// structs for timing data
struct rusage before, after;
// benchmarks
double time_load = 0.0, …
1
vote
2
answers
1k
views
14 allocs ,13 frees in unload()
all I understand about the unload function is that I should traverse every children node in a node with a loop and check if they point to NULL. if so ,the node will be freed and make it point to NULL. …
0
votes
1
answer
349
views
unload function failed
I don't know why my unload function doesn't work.i wrote a recursive function to use in the unload function in dictionary.c and wrote the prototype in dictionary.h . i used a trie structure to be the …