Skip to main content
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
Results tagged with
Search options not deleted user 10660

the first part of pset5, loading a dictionary into memory

0 votes
1 answer
323 views

Pset5 load clang error: linker command failed with exit code 1

I have been working on the load function for pset5 for more than 2 weeks and I am keep receiving clang error: linker command failed with exit code 1. … Thank you bool load(const char* dictionary) { node *head=NULL; FILE *fp=fopen(dictionary, "r"); if (fp==NULL) { fprintf(fp,"File dictionary could not be opened. …
dean.d's user avatar
  • 16
0 votes
1 answer
139 views

Segmentation fault

to load large dictionary i get segmentation fault. … bool load(const char* dictionary) { FILE *fp=fopen(dictionary, "r"); if (fp==NULL) { printf("File dictionary could not be opened.\n"); return false; } while (! …
dean.d's user avatar
  • 16
0 votes
1 answer
50 views

Segmentation error in load

This time, when I am running load for small dictionary i get the message that text couldn't be found. … Returns true if successful else false. */ bool load(const char* dictionary) { FILE *fp = fopen(dictionary, "r"); if (fp==NULL) { printf("File dictionary cannot be opened\n"); …
dean.d's user avatar
  • 16