- You have a book / a document or a article (something full of text, the more pages of text the better).
- You have a message to convey (a secret, of some sort)
- You simply-put read trough the text and the secret message (may come from input, or reading it from 2 separate files) - split it into words (so, separate spaces, commas and [dots]) so, ',' , '.' and spaces is the only requirement, how is not really that hugely important and you keep the count of how many words there are in the text, now input the secret message (note, the secret's words must be in the text, so if you secret was "My Secret" then, the words "My" and "Secrets" must both exist in the text.) and output the position of the inputted secret message. (E.g if the word "My" was nearly at the first page, maybe the 20th Word in the text, the program should print out '20'. Same with the word "Secrets", if that maybe were later, (let say the 93th word in the text) then your program should print out '93'.
Post Closed as "Needs details or clarity" by FryAmTheEggman, caird coinheringaahin g♦, Unrelated String, Leo, xnor
caird coinheringaahin g
- 50.3k
- 11
- 128
- 354