Advertisement
Guest User

Untitled

a guest
May 29th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. char* getWord(FILE *file);
  2.  
  3. int main (int argc, const char * argv[]) {
  4. const char* filename;
  5. struct hashMap *hashTable;
  6. int tableSize = 10;
  7. clock_t timer;
  8. FILE *fileptr;
  9. /*
  10. this part is using command line arguments, you can use them if you wish
  11. but it is not required. DO NOT remove this code though, we will use it for
  12. testing your program.
  13.  
  14. if you wish not to use command line arguments manually type in your
  15. filename and path in the else case.
  16. */
  17. if(argc == 2)
  18. filename = argv[1];
  19. else
  20. filename = "input1.txt"; /*specify your input text file here*/
  21.  
  22. printf("opening file: %s\n", filename);
  23.  
  24. printf("before clock, after opening file.\n");
  25.  
  26. timer = clock();
  27.  
  28. printf("after clock.");
  29.  
  30. hashTable = createMap(tableSize);
  31.  
  32. /*... concordance code goes here ...*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement