Guest User

Untitled

a guest
Jun 25th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. int numDocs = readLine // assuming first number is number of docs
  2.  
  3. for (int i = 0; i < numDocs; ++i)
  4. {
  5. string line = readLine
  6. int docNumber = getFirstNumber(line)
  7. int numKeywords = getSecondNumber(line)
  8.  
  9. for (int j = 0; j < numKeywords; ++j)
  10. {
  11. string keyword = readline
  12. associate keyword with docNumber // however this works
  13. }
  14. }
Add Comment
Please, Sign In to add comment