Last quarter our last assignment was to create two programs that gernerate silly sentences from words contained in a file.

I was able to create the program with a map, but have no idea how to do it with a hash map. Since it was the end of the quarter, the instructor didn't go over how to do this.

I am using Microsoft Visual Studio 2005 (the school uses Linux, of course...so even the example code is useless to me here).

I am attaching the project files and am wondering if someone would be kind enough to explain how to do this with a hash map.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.