Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main (int argc, const char * argv[]) {
- const char* filename;
- struct hashMap *hashTable;
- int tableSize = 10;
- clock_t timer;
- FILE *fileptr;
- /*
- this part is using command line arguments, you can use them if you wish
- but it is not required. DO NOT remove this code though, we will use it for
- testing your program.
- if you wish not to use command line arguments manually type in your
- filename and path in the else case.
- */
- if(argc == 2)
- filename = argv[1];
- else
- filename = "input2.txt"; /*specify your input text file here*/
- printf("opening file: %s\n", filename);
- timer = clock();
- hashTable = createMap(tableSize);
- /*... concordance code goes here ...*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement