Reading from .txt file and hash the values?

Post your questions regarding programming in C++ in here.
2 posts Page 1 of 1
Contributors
NoWayIn
VIP - Donator
VIP - Donator
Posts: 444
Joined: Sat Nov 21, 2009 11:16 pm

So, I'm trying to read from a txt file, which contains random words. After the words are read by the program, it will output the words and then hash each word, then output the result.
So far, It doesn't really work the way I want. It doesn't read the words 1 by 1. The words in the txt file is something like "cat dog house", but it doesn't read the words 1 by 1.

Any help?
Last edited by NoWayIn on Thu Dec 28, 2017 9:59 pm, edited 1 time in total.
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

C++ drives me nuts so I don't use it lol

Perhaps this could help though: http://www.cplusplus.com/forum/beginner/78150/
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
2 posts Page 1 of 1
Return to “General coding help”